7using System.Collections.Generic;
11using System.Threading.Tasks;
57 #region ILogger Members
76 #region IDisposable Members
81 void IDisposable.Dispose()
Represents a logger to a file.
static ILogger CreateFileLogger(string filename)
Create an instance of a file logger.
FileLogger(string filename)
Constructor. If successful, the file is opened for writing. Raises an exception if the output file ca...
void _WriteLine(string logLevel, string msg)
Write a formatted line to the log.
Helper functions for all loggers.
static string FormatLogLine(string logLevel, string msg)
Format a line for logging, including time stamp.
Represents an implementation of a logger object as call from the Logger class.
void LogError(string msg)
Log error messages to the configured output.
void LogTrace(string msg)
Log trace messages to the configured output.
void LogInfo(string msg)
Log informational messages to the configured output.
The namespace containing all Design Pattern Examples implemented in C#.
@ File
Represents a file entry.