Declaration
public class Logger : ILog
Implements:
MatchinghamGames.Utilities.ILog
Properties
Level
Declaration
public LogLevel Level { get; }
IsDebugEnabled
Declaration
public bool IsDebugEnabled { get; }
IsInfoEnabled
Declaration
public bool IsInfoEnabled { get; }
IsWarnEnabled
Declaration
public bool IsWarnEnabled { get; }
IsErrorEnabled
Declaration
public bool IsErrorEnabled { get; }
IsFatalEnabled
Declaration
public bool IsFatalEnabled { get; }
Fields
Name
Declaration
public readonly string Name
LevelFunc
Declaration
public readonly Func<LogLevel> LevelFunc
Methods
Debug(object)
Prints a debug log. Can be toggled off by removing the "Debug" flag from logger flags
Declaration
public void Debug(object message)
Parameters
Type | Name | Description |
---|
System.Object | message | Log message |
Debug(object, Object)
Prints a debug log. Can be toggled off by removing the "Debug" flag from logger flags
Declaration
public void Debug(object message, UnityEngine.Object context)
Parameters
Type | Name | Description |
---|
System.Object | message | Log message |
Global.UnityEngine.Object | context | The unity object that this log message is sent from |
Debug(object, Exception)
Declaration
public void Debug(object message, Exception exception)
Parameters
Type | Name |
---|
System.Object | message |
System.Exception | exception |
Debug(object, Exception, Object)
Declaration
public void Debug(object message, Exception exception, UnityEngine.Object context)
Parameters
Type | Name |
---|
System.Object | message |
System.Exception | exception |
Global.UnityEngine.Object | context |
Prints a debug log. Can be toggled off by removing the "Debug" flag from logger flags
Declaration
public void DebugFormat(string message, params object[] values)
Parameters
Type | Name | Description |
---|
System.String | message | Log message |
System.Object[] | values | Format values |
Prints a debug log. Can be toggled off by removing the "Debug" flag from logger flags
Declaration
public void DebugFormat(UnityEngine.Object context, string message, params object[] values)
Parameters
Type | Name | Description |
---|
Global.UnityEngine.Object | context | The unity object that this log message is sent from |
System.String | message | Log message |
System.Object[] | values | Format values |
Info(object)
Prints an info log. Can be toggled off by removing the "Info" flag from logger flags
Declaration
public void Info(object message)
Parameters
Type | Name | Description |
---|
System.Object | message | Log message |
Info(object, Object)
Prints an info log. Can be toggled off by removing the "Info" flag from logger flags
Declaration
public void Info(object message, UnityEngine.Object context)
Parameters
Type | Name | Description |
---|
System.Object | message | Log message |
Global.UnityEngine.Object | context | The unity object that this log message is sent from |
Info(object, Exception)
Declaration
public void Info(object message, Exception exception)
Parameters
Type | Name |
---|
System.Object | message |
System.Exception | exception |
Info(object, Exception, Object)
Declaration
public void Info(object message, Exception exception, UnityEngine.Object context)
Parameters
Type | Name |
---|
System.Object | message |
System.Exception | exception |
Global.UnityEngine.Object | context |
Prints an info log. Can be toggled off by removing the "Info" flag from logger flags
Declaration
public void InfoFormat(string message, params object[] values)
Parameters
Type | Name | Description |
---|
System.String | message | Log message |
System.Object[] | values | Format values |
Prints an info log. Can be toggled off by removing the "Info" flag from logger flags
Declaration
public void InfoFormat(UnityEngine.Object context, string message, params object[] values)
Parameters
Type | Name | Description |
---|
Global.UnityEngine.Object | context | The unity object that this log message is sent from |
System.String | message | Log message |
System.Object[] | values | Format values |
Warn(object)
Prints a warning log. Can be toggled off by removing the "Warning" flag from logger flags
Declaration
public void Warn(object message)
Parameters
Type | Name | Description |
---|
System.Object | message | Log message |
Warn(object, Object)
Prints a warning log. Can be toggled off by removing the "Warning" flag from logger flags
Declaration
public void Warn(object message, UnityEngine.Object context)
Parameters
Type | Name | Description |
---|
System.Object | message | Log message |
Global.UnityEngine.Object | context | The unity object that this log message is sent from |
Warn(object, Exception)
Declaration
public void Warn(object message, Exception exception)
Parameters
Type | Name |
---|
System.Object | message |
System.Exception | exception |
Warn(object, Exception, Object)
Declaration
public void Warn(object message, Exception exception, UnityEngine.Object context)
Parameters
Type | Name |
---|
System.Object | message |
System.Exception | exception |
Global.UnityEngine.Object | context |
Prints a warning log. Can be toggled off by removing the "Warning" flag from logger flags
Declaration
public void WarnFormat(string message, params object[] values)
Parameters
Type | Name | Description |
---|
System.String | message | Log message |
System.Object[] | values | Format values |
Prints a warning log. Can be toggled off by removing the "Warning" flag from logger flags
Declaration
public void WarnFormat(UnityEngine.Object context, string message, params object[] values)
Parameters
Type | Name | Description |
---|
Global.UnityEngine.Object | context | The unity object that this log message is sent from |
System.String | message | Log message |
System.Object[] | values | Format values |
Error(object)
Prints an error log. Can be toggled off by removing the "Error" flag from logger flags
Declaration
public void Error(object message)
Parameters
Type | Name | Description |
---|
System.Object | message | Log message |
Error(object, Object)
Prints an error log. Can be toggled off by removing the "Error" flag from logger flags
Declaration
public void Error(object message, UnityEngine.Object context)
Parameters
Type | Name | Description |
---|
System.Object | message | Log message |
Global.UnityEngine.Object | context | The unity object that this log message is sent from |
Error(object, Exception)
Declaration
public void Error(object message, Exception exception)
Parameters
Type | Name |
---|
System.Object | message |
System.Exception | exception |
Error(object, Exception, Object)
Declaration
public void Error(object message, Exception exception, UnityEngine.Object context)
Parameters
Type | Name |
---|
System.Object | message |
System.Exception | exception |
Global.UnityEngine.Object | context |
Prints an error log. Can be toggled off by removing the "Error" flag from logger flags
Declaration
public void ErrorFormat(string message, params object[] values)
Parameters
Type | Name | Description |
---|
System.String | message | Log message |
System.Object[] | values | Format values |
Prints an error log. Can be toggled off by removing the "Error" flag from logger flags
Declaration
public void ErrorFormat(UnityEngine.Object context, string message, params object[] values)
Parameters
Type | Name | Description |
---|
Global.UnityEngine.Object | context | The unity object that this log message is sent from |
System.String | message | Log message |
System.Object[] | values | Format values |
Fatal(object)
Declaration
public void Fatal(object message)
Parameters
Type | Name |
---|
System.Object | message |
Fatal(object, Object)
Declaration
public void Fatal(object message, UnityEngine.Object context)
Parameters
Type | Name |
---|
System.Object | message |
Global.UnityEngine.Object | context |
Fatal(object, Exception)
Declaration
public void Fatal(object message, Exception exception)
Parameters
Type | Name |
---|
System.Object | message |
System.Exception | exception |
Fatal(object, Exception, Object)
Declaration
public void Fatal(object message, Exception exception, UnityEngine.Object context)
Parameters
Type | Name |
---|
System.Object | message |
System.Exception | exception |
Global.UnityEngine.Object | context |
Declaration
public void FatalFormat(string format, params object[] args)
Parameters
Type | Name |
---|
System.String | format |
System.Object[] | args |
Declaration
public void FatalFormat(UnityEngine.Object context, string format, params object[] args)
Parameters
Type | Name |
---|
Global.UnityEngine.Object | context |
System.String | format |
System.Object[] | args |
Implements
Extension Methods
- MatchinghamGames.Utilities.ILog.MatchinghamGames.Utilities.Extensions.Debug(UnityEngine.Object,System.Object)
- MatchinghamGames.Utilities.ILog.MatchinghamGames.Utilities.Extensions.DebugFormat(UnityEngine.Object,System.String,System.Object[])
- MatchinghamGames.Utilities.ILog.MatchinghamGames.Utilities.Extensions.Error(UnityEngine.Object,System.Object)
- MatchinghamGames.Utilities.ILog.MatchinghamGames.Utilities.Extensions.ErrorFormat(UnityEngine.Object,System.String,System.Object[])
- MatchinghamGames.Utilities.ILog.MatchinghamGames.Utilities.Extensions.Fatal(UnityEngine.Object,System.Object)
- MatchinghamGames.Utilities.ILog.MatchinghamGames.Utilities.Extensions.FatalFormat(UnityEngine.Object,System.String,System.Object[])
- MatchinghamGames.Utilities.ILog.MatchinghamGames.Utilities.Extensions.Info(UnityEngine.Object,System.Object)
- MatchinghamGames.Utilities.ILog.MatchinghamGames.Utilities.Extensions.InfoFormat(UnityEngine.Object,System.String,System.Object[])
- MatchinghamGames.Utilities.ILog.MatchinghamGames.Utilities.Extensions.Warn(UnityEngine.Object,System.Object)
- MatchinghamGames.Utilities.ILog.MatchinghamGames.Utilities.Extensions.WarnFormat(UnityEngine.Object,System.String,System.Object[])
- System.Object.MatchinghamGames.Utilities.Extensions.Debug(System.Object)
- System.Object.MatchinghamGames.Utilities.Extensions.Debug(UnityEngine.Object,System.Object)
- System.Object.MatchinghamGames.Utilities.Extensions.DebugFormat(UnityEngine.Object,System.String,System.Object[])
- System.Object.MatchinghamGames.Utilities.Extensions.Error(System.Object)
- System.Object.MatchinghamGames.Utilities.Extensions.Error(UnityEngine.Object,System.Object)
- System.Object.MatchinghamGames.Utilities.Extensions.Fatal(System.Object)
- System.Object.MatchinghamGames.Utilities.Extensions.Info(System.Object)
- System.Object.MatchinghamGames.Utilities.Extensions.Info(UnityEngine.Object,System.Object)
- System.Object.MatchinghamGames.Utilities.Extensions.InfoFormat(UnityEngine.Object,System.String,System.Object[])
- System.Object.MatchinghamGames.Utilities.Extensions.Warn(System.Object)
- System.Object.MatchinghamGames.Utilities.Extensions.Warn(UnityEngine.Object,System.Object)
- System.Object.MatchinghamGames.Utilities.Extensions.WarnFormat(UnityEngine.Object,System.String,System.Object[])