Skip to main content

Class ILoggerExtensions

Inheritance
System.Object
Inherited Members
Show
Syntax
public static class ILoggerExtensions

Methods

LogError(ILogger, Object)

Declaration
public static void LogError(this ILogger logger, object message)
Parameters
TypeNameDescription
ILoggerlogger
System.Objectmessage

Assert(ILogger, Boolean, Object)

Declaration
[Conditional("UNITY_ASSERTIONS")]
public static void Assert(this ILogger logger, bool condition, object message)
Parameters
TypeNameDescription
ILoggerlogger
System.Booleancondition
System.Objectmessage

Assert(ILogger, Boolean)

Declaration
[Conditional("UNITY_ASSERTIONS")]
public static void Assert(this ILogger logger, bool condition)
Parameters
TypeNameDescription
ILoggerlogger
System.Booleancondition

LogWarning(ILogger, Object)

Declaration
public static void LogWarning(this ILogger logger, object message)
Parameters
TypeNameDescription
ILoggerlogger
System.Objectmessage

LogEnabled(ILogger)

Declaration
public static bool LogEnabled(this ILogger logger)
Parameters
TypeNameDescription
ILoggerlogger
Returns
TypeDescription
System.Boolean

WarnEnabled(ILogger)

Declaration
public static bool WarnEnabled(this ILogger logger)
Parameters
TypeNameDescription
ILoggerlogger
Returns
TypeDescription
System.Boolean

ErrorEnabled(ILogger)

Declaration
public static bool ErrorEnabled(this ILogger logger)
Parameters
TypeNameDescription
ILoggerlogger
Returns
TypeDescription
System.Boolean