ConsoleAndFileLogger Class |
Namespace: ShellBoost.Core.Utilities
public class ConsoleAndFileLogger : ILogger, IDisposable
The ConsoleAndFileLogger type exposes the following members.
| Name | Description | |
|---|---|---|
| ConsoleAndFileLogger |
Initializes a new instance of the ConsoleAndFileLogger class.
|
| Name | Description | |
|---|---|---|
| DateTimeFormat |
Gets or sets an optional DateTime format.
If null, the date and time will not be added to the log.
| |
| LogFilePath |
Gets the log file path.
| |
| MaxLevel |
Gets or sets the maximum trace level.
| |
| Prefix |
Gets or sets an optional prefix.
|
| Name | Description | |
|---|---|---|
| Dispose |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
| |
| Dispose(Boolean) |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
| |
| Finalize |
Frees all resources associated with this instance.
(Overrides ObjectFinalize.) | |
| Log |
Logs a value at a specified trace level.
| |
| WriteLineToLog |
Writes a text to the log file.
|