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

plugin logs not printed to nx log #9

Open
shahargli opened this issue Nov 5, 2024 · 3 comments
Open

plugin logs not printed to nx log #9

shahargli opened this issue Nov 5, 2024 · 3 comments
Assignees

Comments

@shahargli
Copy link

Hello,

I built nx meta's: metadata_sdk\samples\sample_analytics_plugin\src\nx\vms_server_plugins\analytics\sample
and as instructed, done this:
#define NX_DEBUG_ENABLE_OUTPUT true
#include <nx/kit/debug.h>

However, although the plugin is enabled and running, the logs it is producing (for example, the one at: Engine::Engine) does not
shows up in main.log nor in system.log
OS: Windows10
nx meta version: 6.0.0.39503-df7e87870276-metavms

@Grey-DeMonstr
Copy link
Contributor

@shahargli which instruction are you referring to? As I can see, this define should make logs to be printed to stdout, not to the server logs.

@Grey-DeMonstr Grey-DeMonstr self-assigned this Nov 7, 2024
@shahargli
Copy link
Author

thanks for the reply!
I am running on windows, so I cannot view the service stdout.
Is there a way to redirect stdout to a file for proper debug on windows?

@Grey-DeMonstr
Copy link
Contributor

@shahargli Sorry for the delay. Yes, there is a way: create special files in the ini-config catalog.
This catalog is defined as following:

  1. %NX_INI_DIR%\ (if such environment variable is defined), or
  2. %LOCALAPPDATA%\nx_ini\ – typically, C:\Users<user>\AppData\Local\nx_ini\ (when running under current user), or
  3. C:\Windows\System32\config\systemprofile\AppData\Local\nx_ini\ (when running server as a service).

In this catalog you should create files mediaserver_stdout.log and mediaserver_stderr.log (where mediaserver is the name of the exe file).

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

2 participants