Skip to main content

Auki::Ark::Debug

The following class allows using different logging methods by overriding the standard Debug.Log calls. This prevents having debugging logs/warning/errors appearing on public Release. When DEBUG is defined, standard Unity functions are used (no change in default behaviour). When !DEBUG and TRACE is defined, Trace will be used (allows to read such logs when someone in Release really wants to). When none is defined, silences any logs.

Public Attributes

Name
readonly LogDelegateLog
readonly LogDelegateLogWarning
readonly LogDelegateLogError

Public Attributes Documentation

variable Log

static readonly LogDelegate Log = (_) => {};

variable LogWarning

static readonly LogDelegate LogWarning = (_) => {};

variable LogError

static readonly LogDelegate LogError = (_) => {};