Quantum 3
3.1.0
Static class to provide customizable log functionality. More...
Public Types | |
| enum | LogOutputOption |
| Enumerates options for log output stream. Default: Console. More... | |
| enum | PrefixOptions |
| Enumerates options for log prefixing. More... | |
Static Public Member Functions | |
| static void | Debug (string msg, LogLevel lvl=LogLevel.Debug, string prefix=null) |
| Check level, format message and call onDebug to log. More... | |
| static void | Error (string msg, LogLevel lvl=LogLevel.Error, string prefix=null) |
| Check level, format message and call onError to log. More... | |
| static void | Exception (Exception ex, LogLevel lvl=LogLevel.Error, string prefix=null) |
| Check level, format message and call onException to log. More... | |
| static void | Info (string msg, LogLevel lvl=LogLevel.Info, string prefix=null) |
| Check level, format message and call onInfo to log. More... | |
| static void | Init (Action< string > error, Action< string > warn, Action< string > info, Action< string > debug, Action< Exception, string > exception) |
| Initialize the logging actions to custom actions. Note: These are initialized by default. More... | |
| static void | Init (LogOutputOption logOutput) |
| Initializes the logging to selected output stream. LogPrefix is set to PrefixOptions.None. More... | |
| static void | Warn (string msg, LogLevel lvl=LogLevel.Warning, string prefix=null) |
| Check level, format message and call onWarn to log. More... | |
Static Public Attributes | |
| static PrefixOptions | LogPrefix = PrefixOptions.None |
| Prefix option for logging. More... | |
Static class to provide customizable log functionality.
|
strong |
|
strong |
|
inlinestatic |
Initializes the logging to selected output stream. LogPrefix is set to PrefixOptions.None.
Auto becomes UnityDebug if this is a Unity build. Defaults to: Console.
| logOutput |
|
inlinestatic |
Initialize the logging actions to custom actions. Note: These are initialized by default.
| error | Log errors. |
| warn | Log warnings. |
| info | Log info. |
| debug | Log debugging / tracing. |
| exception | Log exceptions. |
|
inlinestatic |
Check level, format message and call onException to log.
| ex | The exception to log. |
| lvl | The logging level of the instance that is about to log this message (if the level is equal or greater than this message. |
| prefix | String to place in front of the actual message. |
|
inlinestatic |
Check level, format message and call onError to log.
| msg | The message to log. |
| lvl | The logging level of the instance that is about to log this message (if the level is equal or greater than this message. |
| prefix | String to place in front of the actual message. |
|
inlinestatic |
Check level, format message and call onWarn to log.
| msg | The message to log. |
| lvl | The logging level of the instance that is about to log this message (if the level is equal or greater than this message. |
| prefix | String to place in front of the actual message. |
|
inlinestatic |
Check level, format message and call onInfo to log.
| msg | The message to log. |
| lvl | The logging level of the instance that is about to log this message (if the level is equal or greater than this message. |
| prefix | String to place in front of the actual message. |
|
inlinestatic |
Check level, format message and call onDebug to log.
| msg | The message to log. |
| lvl | The logging level of the instance that is about to log this message (if the level is equal or greater than this message. |
| prefix | String to place in front of the actual message. |
|
static |
Prefix option for logging.