Skip to main content

Class Logger

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
TypeNameDescription
System.ObjectmessageLog 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
TypeNameDescription
System.ObjectmessageLog message
Global.UnityEngine.ObjectcontextThe unity object that this log message is sent from

Debug(object, Exception)

Declaration
public void Debug(object message, Exception exception)
Parameters
TypeName
System.Objectmessage
System.Exceptionexception

Debug(object, Exception, Object)

Declaration
public void Debug(object message, Exception exception, UnityEngine.Object context)
Parameters
TypeName
System.Objectmessage
System.Exceptionexception
Global.UnityEngine.Objectcontext

DebugFormat(string, params object[])

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
TypeNameDescription
System.StringmessageLog message
System.Object[]valuesFormat values

DebugFormat(Object, string, params object[])

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
TypeNameDescription
Global.UnityEngine.ObjectcontextThe unity object that this log message is sent from
System.StringmessageLog message
System.Object[]valuesFormat 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
TypeNameDescription
System.ObjectmessageLog 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
TypeNameDescription
System.ObjectmessageLog message
Global.UnityEngine.ObjectcontextThe unity object that this log message is sent from

Info(object, Exception)

Declaration
public void Info(object message, Exception exception)
Parameters
TypeName
System.Objectmessage
System.Exceptionexception

Info(object, Exception, Object)

Declaration
public void Info(object message, Exception exception, UnityEngine.Object context)
Parameters
TypeName
System.Objectmessage
System.Exceptionexception
Global.UnityEngine.Objectcontext

InfoFormat(string, params object[])

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
TypeNameDescription
System.StringmessageLog message
System.Object[]valuesFormat values

InfoFormat(Object, string, params object[])

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
TypeNameDescription
Global.UnityEngine.ObjectcontextThe unity object that this log message is sent from
System.StringmessageLog message
System.Object[]valuesFormat 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
TypeNameDescription
System.ObjectmessageLog 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
TypeNameDescription
System.ObjectmessageLog message
Global.UnityEngine.ObjectcontextThe unity object that this log message is sent from

Warn(object, Exception)

Declaration
public void Warn(object message, Exception exception)
Parameters
TypeName
System.Objectmessage
System.Exceptionexception

Warn(object, Exception, Object)

Declaration
public void Warn(object message, Exception exception, UnityEngine.Object context)
Parameters
TypeName
System.Objectmessage
System.Exceptionexception
Global.UnityEngine.Objectcontext

WarnFormat(string, params object[])

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
TypeNameDescription
System.StringmessageLog message
System.Object[]valuesFormat values

WarnFormat(Object, string, params object[])

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
TypeNameDescription
Global.UnityEngine.ObjectcontextThe unity object that this log message is sent from
System.StringmessageLog message
System.Object[]valuesFormat 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
TypeNameDescription
System.ObjectmessageLog 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
TypeNameDescription
System.ObjectmessageLog message
Global.UnityEngine.ObjectcontextThe unity object that this log message is sent from

Error(object, Exception)

Declaration
public void Error(object message, Exception exception)
Parameters
TypeName
System.Objectmessage
System.Exceptionexception

Error(object, Exception, Object)

Declaration
public void Error(object message, Exception exception, UnityEngine.Object context)
Parameters
TypeName
System.Objectmessage
System.Exceptionexception
Global.UnityEngine.Objectcontext

ErrorFormat(string, params object[])

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
TypeNameDescription
System.StringmessageLog message
System.Object[]valuesFormat values

ErrorFormat(Object, string, params object[])

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
TypeNameDescription
Global.UnityEngine.ObjectcontextThe unity object that this log message is sent from
System.StringmessageLog message
System.Object[]valuesFormat values

Fatal(object)

Declaration
public void Fatal(object message)
Parameters
TypeName
System.Objectmessage

Fatal(object, Object)

Declaration
public void Fatal(object message, UnityEngine.Object context)
Parameters
TypeName
System.Objectmessage
Global.UnityEngine.Objectcontext

Fatal(object, Exception)

Declaration
public void Fatal(object message, Exception exception)
Parameters
TypeName
System.Objectmessage
System.Exceptionexception

Fatal(object, Exception, Object)

Declaration
public void Fatal(object message, Exception exception, UnityEngine.Object context)
Parameters
TypeName
System.Objectmessage
System.Exceptionexception
Global.UnityEngine.Objectcontext

FatalFormat(string, params object[])

Declaration
public void FatalFormat(string format, params object[] args)
Parameters
TypeName
System.Stringformat
System.Object[]args

FatalFormat(Object, string, params object[])

Declaration
public void FatalFormat(UnityEngine.Object context, string format, params object[] args)
Parameters
TypeName
Global.UnityEngine.Objectcontext
System.Stringformat
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[])