Class ConsoleLogger
Logger for the console
Inheritance
System.Object
ConsoleLogger
Implements
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: ImageVault.Common.Lib.Logging
Assembly: ImageVault.Common.dll
Syntax
public class ConsoleLogger : ILogger
Constructors
ConsoleLogger(String)
Constructor
Declaration
public ConsoleLogger(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name |
Methods
IsEnabled(Level)
Checks if the supplied Level is enabled or not
Declaration
public bool IsEnabled(Level level)
Parameters
Type | Name | Description |
---|---|---|
Level | level |
Returns
Type | Description |
---|---|
System.Boolean |
Log(Level, Object, Exception)
Logs a message and or an exception
Declaration
public void Log(Level level, object message, Exception exception)
Parameters
Type | Name | Description |
---|---|---|
Level | level | The Level of the message |
System.Object | message | The message to log |
System.Exception | exception | An optional System.Exception to log |