Difference between revisions of "Log files"

From VCMI Project Wiki
Jump to: navigation, search
(Updated path to files on Linux for what used in 0.97 (XDG). Unfortunately no idea about Mac :-()
(Replaced content with "{{Template:MovedToWebpage|https://vcmi.eu/developers/Logging_API/}}")
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
= Where are the log files =
+
{{Template:MovedToWebpage|https://vcmi.eu/developers/Logging_API/}}
Log files are written to:
 
* Windows: Same as your Heroes III location
 
* Linux ~/.cache/vcmi
 
* UNIX: ~./vcmi
 
 
 
There is a log file named <tt>VCMI_Client_log.txt</tt> for the client executable and a log file named <tt>VCMI_Server_log.txt</tt> for the server executable.
 
 
 
= How to set the log level to debug =
 
If you want to set the log level to debug or trace to let developers know what went wrong or to write a bug report, then you should first open your <tt>settings.json</tt> with a text editor. The file is located at:
 
* Windows: Heroes III location/config
 
* Linux ~/.config/vcmi
 
* UNIX: ~./vcmi/config
 
 
 
Add the "logging" : { ... } part to the file, that it may look like this:
 
<syntaxhighlight lang="javascript">
 
{
 
    "logging" : {
 
        "loggers" : [
 
            {
 
                "domain" : "global",
 
                "level" : "debug"
 
            }
 
        ]
 
    }
 
}
 
</syntaxhighlight>
 
 
 
You can substitute the value debug with trace to log traces as well.
 

Latest revision as of 16:29, 16 July 2024

Logo256.png    Page moved to VCMI-Homepage