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

Disable log file #132

Closed
Allius27 opened this issue Sep 20, 2024 · 3 comments
Closed

Disable log file #132

Allius27 opened this issue Sep 20, 2024 · 3 comments

Comments

@Allius27
Copy link

Camera - Gemini 2
SDK version - v1.10.12
Operation system - Ubuntu20

Hi there

How to disable saving log "Log/OrbbecSDK.log.txt" ?

@zhonghong322
Copy link
Contributor

1、You can modify the configuration file to disable logging.
image
2、If you want to implement it with code, please refer to the documentation.
https://orbbec.github.io/OrbbecSDK/doc/tutorial/English/OrbbecSDK_C++_API_user_guide-v1.0.pdf

@zhonghong322
Copy link
Contributor

@Allius27 Have your questions been resolved?

@Allius27
Copy link
Author

Yes, thank.

For others
Completly log might be disable via "OrbbecSDKConfig_v1.0.xml"
And file even not creates.

Disabling it from the API doesn't work (without config file)
Log fIle creates anyway, but doesn't fill after API disabling

ob::Context m_ctx;
m_ctx.setLoggerToFile(OB_LOG_SEVERITY_OFF, NULL);

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