Méthode | Description | |
---|---|---|
GetIgnoreAllLogger ( ) : ILogger |
Always returns a logger that will ignore all output directed to it. This can be used to pass a logger instance to code which requires one while not actually desiring the resulting output.
|
|
GetLogger ( |
Same as
|
|
GetLogger ( string name ) : ILogger |
Gets the logger with the specified name. Multiple calls with the same name will return the same instance.
|
|
InitializeLoggerFactory ( string factoryName ) : bool |
Attempts to define which logger factory to use.
|
|
SetLogFile ( string absoluteLogFileName, bool append, string messagePattern ) : void |
Sets a new file appender to the root logger. This can be used if an application should log to a configurable file. currently only the log4net logging mechanism supports Use this feature by _not_ configuring a file appender in the app.config of the application and set an appender using this method. Like that logging will be effective only after this method has been called (except for other logger appenders of course). |
public static GetIgnoreAllLogger ( ) : ILogger | ||
Résultat | ILogger |
public static GetLogger ( |
||
type | the type for which a logger should be retrieved | |
Résultat | ILogger |
public static GetLogger ( string name ) : ILogger | ||
name | string | the name of the logger to retrieve |
Résultat | ILogger |
public static InitializeLoggerFactory ( string factoryName ) : bool | ||
factoryName | string | the fully qualified class name of the logger factory |
Résultat | bool |
public static SetLogFile ( string absoluteLogFileName, bool append, string messagePattern ) : void | ||
absoluteLogFileName | string | the name of the log file |
append | bool | whether to append or create new content |
messagePattern | string | the message pattern; may be empty or null in which case /// a default pattern is used |
Résultat | void |