Skip to main content
Version: 2.x

Class OdinLog

Declaration
public static class OdinLog

Properties

LogVerbosity

Declaration
public static OdinLog.VerbosityLevel LogVerbosity { get; set; }

Logger

Declaration
public static Action<string, OdinLog.LogType, object[]> Logger { get; }

Methods

DefaultLogger(string, LogType, params object[])

Declaration
public static void DefaultLogger(string message, OdinLog.LogType type, params object[] args)
Parameters
TypeName
System.Stringmessage
OdinNative.OdinLog.LogTypetype
System.Object[]args

SetLogger(Action<string, LogType, object[]>)

Declaration
public static void SetLogger(Action<string, OdinLog.LogType, object[]> logger)
Parameters
TypeName
System.Action<System.String,OdinNative.OdinLog.LogType,System.Object[]>logger

Log(string, LogType, params object[])

Declaration
public static void Log(string message, OdinLog.LogType type, params object[] args)
Parameters
TypeName
System.Stringmessage
OdinNative.OdinLog.LogTypetype
System.Object[]args

LogError(string)

Declaration
public static void LogError(string message)
Parameters
TypeName
System.Stringmessage

LogAssert(bool, string)

Declaration
public static void LogAssert(bool condition, string message)
Parameters
TypeName
System.Booleancondition
System.Stringmessage

LogDebug(string)

Declaration
public static void LogDebug(string message)
Parameters
TypeName
System.Stringmessage

LogWarning(string)

Declaration
public static void LogWarning(string message)
Parameters
TypeName
System.Stringmessage

LogInfo(string)

Declaration
public static void LogInfo(string message)
Parameters
TypeName
System.Stringmessage

LogException(Exception)

Declaration
public static void LogException(Exception ex)
Parameters
TypeName
System.Exceptionex

LogSilent(string)

Declaration
public static void LogSilent(string message)
Parameters
TypeName
System.Stringmessage

LogNative(string)

Declaration
public static void LogNative(string message)
Parameters
TypeName
System.Stringmessage

InitNative(VerbosityLevel)

Declaration
public static bool InitNative(OdinLog.VerbosityLevel level)
Returns

System.Boolean

Parameters
TypeName
OdinNative.OdinLog.VerbosityLevellevel

GetState()

Declaration
public static string GetState()
Returns

System.String

GlobalWriter(LogType, string, bool, params object[])

Declaration
public static void GlobalWriter(OdinLog.LogType type, string message, bool assertion = true, params object[] args)
Parameters
TypeName
OdinNative.OdinLog.LogTypetype
System.Stringmessage
System.Booleanassertion
System.Object[]args