C# Class MetroLog.Logger

Mostra file Open project: mbrit/ProgrammingMetroStyle

Private Properties

Property Type Description
LogInternal LogEventInfo
Logger System

Public Methods

Method Description
Debug ( string message ) : void
Debug ( string message, Exception ex = null ) : void
Error ( string message ) : void
Error ( string message, Exception ex = null ) : void
Fatal ( string message ) : void
Fatal ( string message, Exception ex = null ) : void
Info ( string message ) : void
Info ( string message, Exception ex = null ) : void
IsEnabled ( LogLevel level ) : bool
Log ( LogLevel logLevel, string message ) : LogEventInfo
Log ( LogLevel logLevel, string message, Exception ex ) : LogEventInfo
Trace ( string message ) : void
Trace ( string message, Exception ex = null ) : void
Warn ( string message ) : void
Warn ( string message, Exception ex = null ) : void

Private Methods

Method Description
LogInternal ( LogLevel level, string message, string ps, Exception ex, bool doFormat ) : LogEventInfo
Logger ( string name, LoggingConfiguration config ) : System

Method Details

Debug() public method

public Debug ( string message ) : void
message string
return void

Debug() public method

public Debug ( string message, Exception ex = null ) : void
message string
ex System.Exception
return void

Error() public method

public Error ( string message ) : void
message string
return void

Error() public method

public Error ( string message, Exception ex = null ) : void
message string
ex System.Exception
return void

Fatal() public method

public Fatal ( string message ) : void
message string
return void

Fatal() public method

public Fatal ( string message, Exception ex = null ) : void
message string
ex System.Exception
return void

Info() public method

public Info ( string message ) : void
message string
return void

Info() public method

public Info ( string message, Exception ex = null ) : void
message string
ex System.Exception
return void

IsEnabled() public method

public IsEnabled ( LogLevel level ) : bool
level LogLevel
return bool

Log() public method

public Log ( LogLevel logLevel, string message ) : LogEventInfo
logLevel LogLevel
message string
return LogEventInfo

Log() public method

public Log ( LogLevel logLevel, string message, Exception ex ) : LogEventInfo
logLevel LogLevel
message string
ex System.Exception
return LogEventInfo

Trace() public method

public Trace ( string message ) : void
message string
return void

Trace() public method

public Trace ( string message, Exception ex = null ) : void
message string
ex System.Exception
return void

Warn() public method

public Warn ( string message ) : void
message string
return void

Warn() public method

public Warn ( string message, Exception ex = null ) : void
message string
ex System.Exception
return void