C# 클래스 Aqueduct.Diagnostics.AppLogger

Logs errors and messages using specified configuration. Cannot be inherited.
파일 보기 프로젝트 열기: aqueduct/Aqueduct.SitecoreLib

공개 메소드들

메소드 설명
AddGlobalCustomParameter ( string name, string value ) : void
GetNamedLogger ( Type loggedType ) : ILogger

Returns a new instance of ILogger with a name taken from a type

Need to have called Initialise before you can get a working logger

GetNamedLogger ( string logName ) : ILogger

Returns a new instance of ILogger with a given name

Need to have called Initialise before you can get a working logger

Initialise ( string configFilePath, string loggerName ) : void

Initialises AppLogger using the specified config file.

InitialiseFromConfig ( string loggerName ) : void

Initialises AppLogger using the Aqueduct.Config file.

Uses the contents of the Diagnostics.Config setting to Initialise the loggerTo enable the intrelnal log debugging set Diagnostics.InternalDebugMode setting to true

LogDebugMessage ( string message ) : void

Writes DEBUG-level message to the configured log.

LogError ( string message, Exception exception ) : void

Writes ERROR-level message to the configured log.

LogFatalError ( string message, Exception exception ) : void

Writes FATAL-level message to the configured log.

LogInfoMessage ( string message ) : void

Writes INFO-level message to the configured log.

LogWarningMessage ( string message ) : void

Writes WARNING-level message to the configured log.

비공개 메소드들

메소드 설명
SendToAppFail ( Exception exception ) : void

메소드 상세

AddGlobalCustomParameter() 공개 정적인 메소드

public static AddGlobalCustomParameter ( string name, string value ) : void
name string
value string
리턴 void

GetNamedLogger() 공개 정적인 메소드

Returns a new instance of ILogger with a name taken from a type
Need to have called Initialise before you can get a working logger
public static GetNamedLogger ( Type loggedType ) : ILogger
loggedType System.Type The type which will be used as the logger's name.
리턴 ILogger

GetNamedLogger() 공개 정적인 메소드

Returns a new instance of ILogger with a given name
Need to have called Initialise before you can get a working logger
public static GetNamedLogger ( string logName ) : ILogger
logName string Name of the logger to use for logging.
리턴 ILogger

Initialise() 공개 정적인 메소드

Initialises AppLogger using the specified config file.
when is null or empty. when is null or empty.
public static Initialise ( string configFilePath, string loggerName ) : void
configFilePath string Name of the config file to load configuration from.
loggerName string Name of the logger to use for logging.
리턴 void

InitialiseFromConfig() 공개 정적인 메소드

Initialises AppLogger using the Aqueduct.Config file.
Uses the contents of the Diagnostics.Config setting to Initialise the logger To enable the intrelnal log debugging set Diagnostics.InternalDebugMode setting to true
public static InitialiseFromConfig ( string loggerName ) : void
loggerName string
리턴 void

LogDebugMessage() 공개 정적인 메소드

Writes DEBUG-level message to the configured log.
public static LogDebugMessage ( string message ) : void
message string The message to log.
리턴 void

LogError() 공개 정적인 메소드

Writes ERROR-level message to the configured log.
public static LogError ( string message, Exception exception ) : void
message string The message to log.
exception System.Exception The exception to log.
리턴 void

LogFatalError() 공개 정적인 메소드

Writes FATAL-level message to the configured log.
public static LogFatalError ( string message, Exception exception ) : void
message string The message to log.
exception System.Exception The exception to log.
리턴 void

LogInfoMessage() 공개 정적인 메소드

Writes INFO-level message to the configured log.
public static LogInfoMessage ( string message ) : void
message string The message to log.
리턴 void

LogWarningMessage() 공개 정적인 메소드

Writes WARNING-level message to the configured log.
public static LogWarningMessage ( string message ) : void
message string The message to log.
리턴 void