Class IdleKitLog
A static class which wraps a IPriorityLogger implementation to provide global logging functionality.
The logging behavior can be customized by providing a different IPriorityLogger implementation via the
RegisterLogger(IPriorityLogger) method. The default implementation of IContext will provide
the IdleKitLog with a DebugLogger or DevelopmentLogger depending on the build configuration.
Assembly: cs.temp.dll.dll
Syntax
public static class IdleKitLog
Properties
logger
Declaration
public static IPriorityLogger logger { get; }
Property Value
Methods
Cleanup()
Declaration
public static void Cleanup()
Log(Object)
Declaration
public static void Log(object message)
Parameters
Type |
Name |
Description |
Object |
message |
|
LogError(Object)
Declaration
public static void LogError(object message)
Parameters
Type |
Name |
Description |
Object |
message |
|
LogException(Exception)
Declaration
public static void LogException(Exception exception)
Parameters
LogWarning(Object)
Declaration
public static void LogWarning(object message)
Parameters
Type |
Name |
Description |
Object |
message |
|
RegisterLogger(IPriorityLogger)
Declaration
public static void RegisterLogger(IPriorityLogger logger)
Parameters
SetMinPriority(Int32)
Sets the minimum priority value. Messages logged with a lower priority value than this will be ignored by the logger.
Declaration
public static void SetMinPriority(int priority)
Parameters
Type |
Name |
Description |
Int32 |
priority |
A priority value that should be specified via the LoggerPriority presets.
|