C# Class ModernApp4Me.Core.Log.M4MLogger

Just in order to have various loggers.
Afficher le fichier Open project: smartnsoft/ModernApp4Me

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode 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

Méthode Description
BuildLogInternal ( M4MLogLevel logLevel, string message, string callerMemberName, string callerFilePath, int callerLineNumber ) : StringBuilder

Method Details

BuildLog() protected méthode

protected BuildLog ( M4MLogLevel logLevel, string message, string callerMemberName, string callerFilePath, int callerLineNumber ) : string
logLevel M4MLogLevel
message string
callerMemberName string
callerFilePath string
callerLineNumber int
Résultat string

BuildLog() protected méthode

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
Résultat string

Debug() public méthode

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

Error() public méthode

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

Error() public méthode

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

Fatal() public méthode

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

Fatal() public méthode

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

Info() public méthode

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

IsDebugEnabled() public méthode

public IsDebugEnabled ( ) : bool
Résultat bool

IsErrorEnabled() public méthode

public IsErrorEnabled ( ) : bool
Résultat bool

IsFatalEnabled() public méthode

public IsFatalEnabled ( ) : bool
Résultat bool

IsInfoEnabled() public méthode

public IsInfoEnabled ( ) : bool
Résultat bool

IsWarnEnabled() public méthode

public IsWarnEnabled ( ) : bool
Résultat bool

Warn() public méthode

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

Warn() public méthode

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

WriteTrace() public abstract méthode

public abstract WriteTrace ( string log ) : void
log string
Résultat void