bovender framework
C# framework that implements MVVM and more
Bovender.Logging.LogFile Class Reference

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< LogFileLogFileProvider [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...
 

Detailed Description

Provides logging to file and to the debug console; wraps NLog configuration and targets.

Definition at line 33 of file LogFile.cs.

Property Documentation

virtual string Bovender.Logging.LogFile.ArchivedLogsPath
get

Gets the complete path and file name layout for the archive files.

Definition at line 153 of file LogFile.cs.

string Bovender.Logging.LogFile.CurrentLog
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.

string Bovender.Logging.LogFile.CurrentLogFile
get

Gets the complete path and file name of the 'current' log file.

Definition at line 138 of file LogFile.cs.

bool Bovender.Logging.LogFile.IsCurrentLogAvailable
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.

bool Bovender.Logging.LogFile.IsInitializedAndEnabled
staticget

Gets whether file logging is enabled, without initializing the singleton instance if it isn't.

Definition at line 68 of file LogFile.cs.

Func<LogFile> Bovender.Logging.LogFile.LogFileProvider
staticgetset

Provides a function to generate a custom LogFile object.

Definition at line 40 of file LogFile.cs.

virtual string Bovender.Logging.LogFile.LogFolder
get

Gets the folder where log files are stored.

Definition at line 123 of file LogFile.cs.


The documentation for this class was generated from the following file: