Class FileLogManager.FileLogger
Defines a basic ILogger that logs to disc
Inheritance
System.Object
FileLogManager.FileLogger
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 FileLogger : ILogger
Constructors
FileLogger(String, String, Level)
Creates a logger that logs to a file
Declaration
public FileLogger(string name, string logPath, Level logLevel)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | |
System.String | logPath | |
Level | logLevel |
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 |