Class AppLog
Logging class which applies a verbosity filter to all logs which are produced with it
Namespace: i5.Toolkit.Core.VerboseLogging
Assembly: cs.temp.dll.dll
Syntax
public static class AppLog
Properties
CriticalColor
The color which should be applied to critical log messags if UseColors is true
Declaration
public static Color CriticalColor { get; set; }
Property Value
Type | Description |
---|---|
Color |
DebugColor
The color which should be applied to debug log messags if UseColors is true
Declaration
public static Color DebugColor { get; set; }
Property Value
Type | Description |
---|---|
Color |
ErrorColor
The color which should be applied to error log messags if UseColors is true
Declaration
public static Color ErrorColor { get; set; }
Property Value
Type | Description |
---|---|
Color |
InfoColor
The color which should be applied to info log messags if UseColors is true
Declaration
public static Color InfoColor { get; set; }
Property Value
Type | Description |
---|---|
Color |
MinimumLogLevel
The minimum importance level of logs which will be ouput. All logs with a lower importance level are ignored.
Declaration
public static LogLevel MinimumLogLevel { get; set; }
Property Value
Type | Description |
---|---|
LogLevel |
TraceColor
The color which should be applied to trace log messags if UseColors is true
Declaration
public static Color TraceColor { get; set; }
Property Value
Type | Description |
---|---|
Color |
UseColors
If true, the module will style messages in the editor with colors
Declaration
public static bool UseColors { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
WarningColor
The color which should be applied to warning log messags if UseColors is true
Declaration
public static Color WarningColor { get; set; }
Property Value
Type | Description |
---|---|
Color |
Methods
Log(String, LogLevel, Object)
Logs a message with a given level
Declaration
public static void Log(string message, LogLevel level, Object context = null)
Parameters
Type | Name | Description |
---|---|---|
String | message | The message to log |
LogLevel | level | The importance level of the message |
Object | context | The Unity Object context which sends the message |
Log(String, LogLevel, Object)
Logs a message with a given level
Declaration
public static void Log(string message, LogLevel level, object context)
Parameters
Type | Name | Description |
---|---|---|
String | message | The message to log |
LogLevel | level | The importance level of the message |
Object | context | The object context which sends the message |
LogCritical(String, Object)
Logs a critical error message
Declaration
public static void LogCritical(string message, Object context = null)
Parameters
Type | Name | Description |
---|---|---|
String | message | The message to log |
Object | context | The context of the message |
LogCritical(String, Object)
Logs a critical error message
Declaration
public static void LogCritical(string message, object context)
Parameters
Type | Name | Description |
---|---|---|
String | message | The message to log |
Object | context | The context of the message |
LogDebug(String, Object)
Logs a message for debugging the code
Declaration
public static void LogDebug(string message, Object context = null)
Parameters
Type | Name | Description |
---|---|---|
String | message | The message to log |
Object | context | The context of the message |
LogDebug(String, Object)
Logs a message for debugging the code
Declaration
public static void LogDebug(string message, object context)
Parameters
Type | Name | Description |
---|---|---|
String | message | The message to log |
Object | context | The context of the message |
LogError(String, Object)
Logs an error message
Declaration
public static void LogError(string message, Object context = null)
Parameters
Type | Name | Description |
---|---|---|
String | message | The message to log |
Object | context | The context of the message |
LogError(String, Object)
Logs an error message
Declaration
public static void LogError(string message, object context)
Parameters
Type | Name | Description |
---|---|---|
String | message | The message to log |
Object | context | The context of the message |
LogException(Exception, Boolean, Object)
Logs an exception either as an error message or a critical error message
Declaration
public static void LogException(Exception e, bool isCritical = false, Object context = null)
Parameters
Type | Name | Description |
---|---|---|
Exception | e | The exception which should be logged |
Boolean | isCritical | If set to true, the message will be logged as a critical error |
Object | context | The context of the message |
LogException(Exception, Boolean, Object)
Logs an exception either as an error message or a critical error message
Declaration
public static void LogException(Exception e, bool isCritical, object context)
Parameters
Type | Name | Description |
---|---|---|
Exception | e | The exception which should be logged |
Boolean | isCritical | If set to true, the message will be logged as a critical error |
Object | context | The context of the message |
LogInfo(String, Object)
Logs an info message
Declaration
public static void LogInfo(string message, Object context = null)
Parameters
Type | Name | Description |
---|---|---|
String | message | The message to log |
Object | context | The context of the message |
LogInfo(String, Object)
Logs an info message
Declaration
public static void LogInfo(string message, object context)
Parameters
Type | Name | Description |
---|---|---|
String | message | The message to log |
Object | context | The context of the message |
LogTrace(String, Object)
Logs a message which can be used to trace the code execution path
Declaration
public static void LogTrace(string message, Object context = null)
Parameters
Type | Name | Description |
---|---|---|
String | message | The message to log |
Object | context | The context of the message |
LogTrace(String, Object)
Logs a message which can be used to trace the code execution path
Declaration
public static void LogTrace(string message, object context)
Parameters
Type | Name | Description |
---|---|---|
String | message | The message to log |
Object | context | The context of the message |
LogWarning(String, Object)
Logs a warning message
Declaration
public static void LogWarning(string message, Object context = null)
Parameters
Type | Name | Description |
---|---|---|
String | message | The message to log |
Object | context | The context of the message |
LogWarning(String, Object)
Logs a warning message
Declaration
public static void LogWarning(string message, object context)
Parameters
Type | Name | Description |
---|---|---|
String | message | The message to log |
Object | context | The context of the message |