Changes

→‎Logging: Adding more detail and taking out the colors because log files don't have colors.
Line 17: Line 17:  
</syntaxhighlight>
 
</syntaxhighlight>
   −
will log something like this:
+
...will produce entries in the log with a timestamp, log level, name of the mod writing the log entry, and the log message itself:
   −
<div style="font-family: monospace;">
+
<pre>
<span style="color:#666;">[18:00:00 TRACE Mod Name] a trace message</span><br />
+
[18:00:00 TRACE NameOfMod] a trace message
<span style="color:#666;">[18:00:00 DEBUG Mod Name] a debug message</span><br />
+
[18:00:00 DEBUG NameOfMod] a debug message
<span style="color:black;">[18:00:00 INFO  Mod Name] an info message</span><br />
+
[18:00:00 INFO  NameOfMod] an info message
<span style="color:darkorange;">[18:00:00 WARN  Mod Name] a warning message</span><br />
+
[18:00:00 WARN  NameOfMod] a warning message
<span style="color:red;">[18:00:00 ERROR Mod Name] an error message</span>
+
[18:00:00 ERROR NameOfMod] an error message
</div>
+
</pre>
    
===Log levels===
 
===Log levels===
32

edits