Proper names for log categories.

This commit is contained in:
Marc Hernandez 2019-09-25 21:21:16 -07:00
parent 6acbcfc21b
commit 507987b50f

12
Log.cs
View File

@ -105,32 +105,32 @@ namespace lib
*/ */
// Forwards. // Forwards.
static public void fatal( string msg, string cat = "unk", object obj = null ) static public void fatal( string msg, string cat = "fatal", object obj = null )
{ {
log( msg, LogType.Fatal, cat, obj ); log( msg, LogType.Fatal, cat, obj );
} }
static public void error( string msg, string cat = "unk", object obj = null ) static public void error( string msg, string cat = "error", object obj = null )
{ {
log( msg, LogType.Error, cat, obj ); log( msg, LogType.Error, cat, obj );
} }
static public void warn( string msg, string cat = "unk", object obj = null ) static public void warn( string msg, string cat = "warn", object obj = null )
{ {
log( msg, LogType.Warn, cat, obj ); log( msg, LogType.Warn, cat, obj );
} }
static public void info( string msg, string cat = "unk", object obj = null ) static public void info( string msg, string cat = "info", object obj = null )
{ {
log( msg, LogType.Info, cat, obj ); log( msg, LogType.Info, cat, obj );
} }
static public void debug( string msg, string cat = "unk", object obj = null ) static public void debug( string msg, string cat = "dbg", object obj = null )
{ {
log( msg, LogType.Debug, cat, obj ); log( msg, LogType.Debug, cat, obj );
} }
static public void trace( string msg, string cat = "unk", object obj = null ) static public void trace( string msg, string cat = "", object obj = null )
{ {
log( msg, LogType.Trace, cat, obj ); log( msg, LogType.Trace, cat, obj );
} }