Provides logging to file and to the debug console; wraps NLog configuration and targets. More...
Public Member Functions | |
| void | ShowFolderInExplorer () |
| void | EnableDebugLogging () |
Protected Member Functions | |
| void | EnableFileLogging () |
| void | DisableFileLogging () |
Properties | |
| static Func< LogFile > | LogFileProvider [get, set] |
| Provides a function to generate a custom LogFile object. More... | |
| static LogFile | Default [get] |
| static bool | IsInitializedAndEnabled [get] |
| Gets whether file logging is enabled, without initializing the singleton instance if it isn't. More... | |
| bool | IsFileLoggingEnabled [get, set] |
| NLog.LogLevel | LogLevel [get, set] |
| virtual string | LogFolder [get] |
| Gets the folder where log files are stored. More... | |
| string | CurrentLogFile [get] |
| Gets the complete path and file name of the 'current' log file. More... | |
| virtual string | ArchivedLogsPath [get] |
| Gets the complete path and file name layout for the archive files. More... | |
| string | CurrentLog [get] |
| Gets the contents of the current log file. More... | |
| bool | IsCurrentLogAvailable [get] |
| Gets whether the 'current' log file is available, i.e. More... | |
Provides logging to file and to the debug console; wraps NLog configuration and targets.
Definition at line 33 of file LogFile.cs.
|
get |
Gets the complete path and file name layout for the archive files.
Definition at line 153 of file LogFile.cs.
|
get |
Gets the contents of the current log file.
Returns an error string if the log file could not be read (e.g. if it does not exist).
Definition at line 170 of file LogFile.cs.
|
get |
Gets the complete path and file name of the 'current' log file.
Definition at line 138 of file LogFile.cs.
|
get |
Gets whether the 'current' log file is available, i.e.
if the logfile exists. If loggint is disabled, this file contains the information when file logging was enabled last.
Definition at line 191 of file LogFile.cs.
|
staticget |
Gets whether file logging is enabled, without initializing the singleton instance if it isn't.
Definition at line 68 of file LogFile.cs.
|
staticgetset |
Provides a function to generate a custom LogFile object.
Definition at line 40 of file LogFile.cs.
|
get |
Gets the folder where log files are stored.
Definition at line 123 of file LogFile.cs.