Class BetterLogger
A simple wrapper around Unity.DebugLog to make it easier to configure logs
Inheritance
System.Object
BetterLogger
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: !BetterMods.dll
Syntax
public class BetterLogger
Fields
|
Improve this Doc
View Source
local
Declaration
public static BetterLogger local
Field Value
Methods
|
Improve this Doc
View Source
ClassName()
Declaration
public string ClassName()
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Debug(Int32, String, String)
Declaration
[Pure]
public FluentLogger Debug(int lineNumber = 0, string caller = null, string path = null)
Parameters
Type |
Name |
Description |
System.Int32 |
lineNumber |
|
System.String |
caller |
|
System.String |
path |
|
Returns
|
Improve this Doc
View Source
DisableLogging()
Declaration
public void DisableLogging()
|
Improve this Doc
View Source
EnableLogging()
Declaration
public void EnableLogging()
|
Improve this Doc
View Source
Error(Int32, String, String)
Declaration
[Pure]
public FluentLogger Error(int lineNumber = 0, string caller = null, string path = null)
Parameters
Type |
Name |
Description |
System.Int32 |
lineNumber |
|
System.String |
caller |
|
System.String |
path |
|
Returns
|
Improve this Doc
View Source
Exception(Int32, String, String)
Declaration
[Pure]
public FluentLogger Exception(int lineNumber = 0, string caller = null, string path = null)
Parameters
Type |
Name |
Description |
System.Int32 |
lineNumber |
|
System.String |
caller |
|
System.String |
path |
|
Returns
|
Improve this Doc
View Source
GetLogger(Type)
Gets a new instance of BetterLogger
Declaration
public static BetterLogger GetLogger(Type classType)
Parameters
Type |
Name |
Description |
System.Type |
classType |
|
Returns
|
Improve this Doc
View Source
GetLogLevel()
Declaration
public BetterLogger.LogLevel GetLogLevel()
Returns
|
Improve this Doc
View Source
Info(Int32, String, String)
Declaration
[Pure]
public FluentLogger Info(int lineNumber = 0, string caller = null, string path = null)
Parameters
Type |
Name |
Description |
System.Int32 |
lineNumber |
|
System.String |
caller |
|
System.String |
path |
|
Returns
|
Improve this Doc
View Source
IsEnabled()
Declaration
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
SetLogFullNameSpace(Boolean)
Enables or disables including the full class name in the log file
Declaration
public void SetLogFullNameSpace(bool enable)
Parameters
Type |
Name |
Description |
System.Boolean |
enable |
|
|
Improve this Doc
View Source
SetLoggingLevel(BetterLogger.LogLevel)
Sets the logging loggingLevel for this logger instance
Declaration
public void SetLoggingLevel(BetterLogger.LogLevel logLevel)
Parameters
|
Improve this Doc
View Source
ShouldLogFullNamespace()
Declaration
public bool ShouldLogFullNamespace()
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Warn(Int32, String, String)
Declaration
[Pure]
public FluentLogger Warn(int lineNumber = 0, string caller = null, string path = null)
Parameters
Type |
Name |
Description |
System.Int32 |
lineNumber |
|
System.String |
caller |
|
System.String |
path |
|
Returns