C# Class ModernApp4Me.Core.Log.M4MLogger

Just in order to have various loggers.
Mostrar archivo Open project: smartnsoft/ModernApp4Me

Public Methods

Method Description
Debug ( string message, [ callerMemberName = "", [ callerFilePath = "", [ callerLineNumber = -1 ) : void
Error ( string message, Exception exception, [ callerMemberName = "", [ callerFilePath = "", [ callerLineNumber = -1 ) : void
Error ( string message, [ callerMemberName = "", [ callerFilePath = "", [ callerLineNumber = -1 ) : void
Fatal ( string message, Exception exception, [ callerMemberName = "", [ callerFilePath = "", [ callerLineNumber = -1 ) : void
Fatal ( string message, [ callerMemberName = "", [ callerFilePath = "", [ callerLineNumber = -1 ) : void
Info ( string message, [ callerMemberName = "", [ callerFilePath = "", [ callerLineNumber = -1 ) : void
IsDebugEnabled ( ) : bool
IsErrorEnabled ( ) : bool
IsFatalEnabled ( ) : bool
IsInfoEnabled ( ) : bool
IsWarnEnabled ( ) : bool
Warn ( string message, Exception exception, [ callerMemberName = "", [ callerFilePath = "", [ callerLineNumber = -1 ) : void
Warn ( string message, [ callerMemberName = "", [ callerFilePath = "", [ callerLineNumber = -1 ) : void
WriteTrace ( string log ) : void

Protected Methods

Method Description
BuildLog ( M4MLogLevel logLevel, string message, string callerMemberName, string callerFilePath, int callerLineNumber ) : string
BuildLog ( M4MLogLevel logLevel, string message, string exceptionMessage, string stackTrace, string callerMemberName, string callerFilePath, int callerLineNumber ) : string

Private Methods

Method Description
BuildLogInternal ( M4MLogLevel logLevel, string message, string callerMemberName, string callerFilePath, int callerLineNumber ) : StringBuilder

Method Details

BuildLog() protected method

protected BuildLog ( M4MLogLevel logLevel, string message, string callerMemberName, string callerFilePath, int callerLineNumber ) : string
logLevel M4MLogLevel
message string
callerMemberName string
callerFilePath string
callerLineNumber int
return string

BuildLog() protected method

protected BuildLog ( M4MLogLevel logLevel, string message, string exceptionMessage, string stackTrace, string callerMemberName, string callerFilePath, int callerLineNumber ) : string
logLevel M4MLogLevel
message string
exceptionMessage string
stackTrace string
callerMemberName string
callerFilePath string
callerLineNumber int
return string

Debug() public method

public Debug ( string message, [ callerMemberName = "", [ callerFilePath = "", [ callerLineNumber = -1 ) : void
message string
callerMemberName [
callerFilePath [
callerLineNumber [
return void

Error() public method

public Error ( string message, Exception exception, [ callerMemberName = "", [ callerFilePath = "", [ callerLineNumber = -1 ) : void
message string
exception System.Exception
callerMemberName [
callerFilePath [
callerLineNumber [
return void

Error() public method

public Error ( string message, [ callerMemberName = "", [ callerFilePath = "", [ callerLineNumber = -1 ) : void
message string
callerMemberName [
callerFilePath [
callerLineNumber [
return void

Fatal() public method

public Fatal ( string message, Exception exception, [ callerMemberName = "", [ callerFilePath = "", [ callerLineNumber = -1 ) : void
message string
exception System.Exception
callerMemberName [
callerFilePath [
callerLineNumber [
return void

Fatal() public method

public Fatal ( string message, [ callerMemberName = "", [ callerFilePath = "", [ callerLineNumber = -1 ) : void
message string
callerMemberName [
callerFilePath [
callerLineNumber [
return void

Info() public method

public Info ( string message, [ callerMemberName = "", [ callerFilePath = "", [ callerLineNumber = -1 ) : void
message string
callerMemberName [
callerFilePath [
callerLineNumber [
return void

IsDebugEnabled() public method

public IsDebugEnabled ( ) : bool
return bool

IsErrorEnabled() public method

public IsErrorEnabled ( ) : bool
return bool

IsFatalEnabled() public method

public IsFatalEnabled ( ) : bool
return bool

IsInfoEnabled() public method

public IsInfoEnabled ( ) : bool
return bool

IsWarnEnabled() public method

public IsWarnEnabled ( ) : bool
return bool

Warn() public method

public Warn ( string message, Exception exception, [ callerMemberName = "", [ callerFilePath = "", [ callerLineNumber = -1 ) : void
message string
exception System.Exception
callerMemberName [
callerFilePath [
callerLineNumber [
return void

Warn() public method

public Warn ( string message, [ callerMemberName = "", [ callerFilePath = "", [ callerLineNumber = -1 ) : void
message string
callerMemberName [
callerFilePath [
callerLineNumber [
return void

WriteTrace() public abstract method

public abstract WriteTrace ( string log ) : void
log string
return void