Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No plugin logging information appears in X-Plane Log.txt #23

Open
waynepiekarski opened this issue Feb 8, 2018 · 2 comments
Open

No plugin logging information appears in X-Plane Log.txt #23

waynepiekarski opened this issue Feb 8, 2018 · 2 comments

Comments

@waynepiekarski
Copy link
Contributor

I've noticed that the plugin does not appear to ever log anything to X-Plane's Log.txt file. When the plugin is loaded, X-Plane does mention this in the log, but there is no further information such as the port number it is listening on, if any failures occur while opening up the socket, or when incoming connections are received. If the port is already in use, or some other problem, it is difficult to know why things aren't working.

I could not find any mention of XPLMDebugString in the code, but I have seen logging macros used like this: #define INFO qCritical() << "ExtPlane:" << Q_FUNC_INFO

Do these Qt logging macros end up going anywhere? Do any of these macros work in release mode?

Thanks!

@sfo
Copy link
Contributor

sfo commented May 15, 2018

Qt writes to stderr by default. Therefore, to see the plugin messages, you need to run X-Plane from a terminal.

@vranki
Copy link
Owner

vranki commented Jul 25, 2018

I think we should investigate using XPLMDebugString for outputting important information to the log. Normal status output should not go there or could even be removed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants