harfang3d / dogfight-sandbox-hg2

Air to air combat sandbox, created in Python 3 using the HARFANG 3D 2 framework.
GNU General Public License v3.0
161 stars 47 forks source link

where can i make it not show logs? #8

Closed TUY3 closed 2 years ago

TUY3 commented 2 years ago

image

ErkMkd commented 2 years ago

To set the lowest log level, you can add the following lines hg.SetLogDetailed(False) (already defined at line 64 of main.py) hg.SetLogLevel(hg.LL_Normal)

astrofra commented 2 years ago

In addition to what Eric suggested, you can redirect the log output to a text file, by editing this file: https://github.com/harfang3d/dogfight-sandbox-hg2/blob/main/start.bat

as follows:

cd source
..\bin\python\python.exe main.py > log.txt
pause

Please note that it's not always a good idea to mute the log of an application :)

TUY3 commented 2 years ago

To set the lowest log level, you can add the following lines hg.SetLogDetailed(False) (already defined at line 64 of main.py) hg.SetLogLevel(hg.LL_Normal)

Thanks!!! I have solved it!

TUY3 commented 2 years ago

In addition to what Eric suggested, you can redirect the log output to a text file, by editing this file: https://github.com/harfang3d/dogfight-sandbox-hg2/blob/main/start.bat

as follows:

cd source
..\bin\python\python.exe main.py > log.txt
pause

Please note that it's not always a good idea to mute the log of an application :)

Thanks!!! I will look at the log sometimes!