'Is there a way to limit the log output in a Python Harfang 3D project?
I'm currently trying to adapt the Harfang Dogfight Sandbox flight simulator for a reinforcement learning project and the first "issue" I ran into is the log being way too verbose.
Is there a way to limit the amount of feedback and info/warning message that Harfang generates when running a project?
For the reference, this is the project I'm working with:
Solution 1:[1]
You will need to set the log level, by simply doing this:
import harfang as hg
hg.SetLogLevel(hg.LL_Normal)
or:
hg.SetLogLevel(hg.LL_Error | LL_Debug)
...if you just want to read the error and debug messages.
This function is documented here: https://dev.harfang3d.com/api/3.2.1/cpython/functions/#setloglevel
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Astrofra |
