Skip to main content

UnityConsoleLogTarget

A class in Root.Township, Alta.Logging.Targets.

NLog target named UnityConsoleLogTarget that writes log lines to the Unity console logger.

Constructors​

MemberWhat it is
UnityConsoleLogTarget()Creates an UnityConsoleLogTarget with default values.

Fields​

MemberWhat it is
static bool IsLoggingInEditorTurns this target on or off; set from the editor logging settings.
static ILogger unityConsoleLoggerThe Unity logger written to; set up in Debug.

Methods​

MemberWhat it is
protected override void Write(LogEventInfo logEvent)Logs the rendered message to unityConsoleLogger at the matching Unity level, using the last log parameter as context if it is a Unity object.