Table of Contents

Class UnityLogger

Namespace
Coherence.Log
Assembly
Coherence.Log.dll
public class UnityLogger : Logger
Inheritance
UnityLogger
Inherited Members

Constructors

UnityLogger(Type, IEnumerable<ILogTarget>)

public UnityLogger(Type source = null, IEnumerable<ILogTarget> logTargets = null)

Parameters

source Type
logTargets IEnumerable<ILogTarget>

Fields

OnLogDebugEvent

public static UnityLogger.OnLogEvent OnLogDebugEvent

Field Value

UnityLogger.OnLogEvent

OnLogErrorEvent

public static UnityLogger.OnLogEvent OnLogErrorEvent

Field Value

UnityLogger.OnLogEvent

OnLogInfoEvent

public static UnityLogger.OnLogEvent OnLogInfoEvent

Field Value

UnityLogger.OnLogEvent

OnLogTraceEvent

public static UnityLogger.OnLogEvent OnLogTraceEvent

Field Value

UnityLogger.OnLogEvent

OnLogWarningEvent

public static UnityLogger.OnLogEvent OnLogWarningEvent

Field Value

UnityLogger.OnLogEvent

Methods

Debug(string, params (string key, object value)[])

public override void Debug(string log, params (string key, object value)[] args)

Parameters

log string
args (string key, object value)[]

Error(string, params (string key, object value)[])

public override void Error(string log, params (string key, object value)[] args)

Parameters

log string
args (string key, object value)[]

Info(string, params (string key, object value)[])

public override void Info(string log, params (string key, object value)[] args)

Parameters

log string
args (string key, object value)[]

Trace(string, params (string key, object value)[])

public override void Trace(string log, params (string key, object value)[] args)

Parameters

log string
args (string key, object value)[]

Warning(string, params (string key, object value)[])

public override void Warning(string log, params (string key, object value)[] args)

Parameters

log string
args (string key, object value)[]

With(Type)

public override Logger With(Type source)

Parameters

source Type

Returns

Logger

WithArgs(params (string key, object value)[])

public override Logger WithArgs(params (string key, object value)[] args)

Parameters

args (string key, object value)[]

Returns

Logger

With<TSource>()

public override Logger With<TSource>()

Returns

Logger

Type Parameters

TSource