Class LogManager
Inheritance
System.Object
LogManager
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: FChoice.Common.dll
Syntax
public sealed class LogManager
Constructors
LogManager()
Declaration
Fields
SyncRoot
Declaration
public static readonly object SyncRoot
Field Value
Type |
Description |
System.Object |
|
Properties
Instance
Declaration
public static LogManager Instance { get; }
Property Value
IsInitialized
Declaration
public static bool IsInitialized { get; }
Property Value
Type |
Description |
System.Boolean |
|
LogConfigFilePath
Declaration
public static string LogConfigFilePath { get; set; }
Property Value
Type |
Description |
System.String |
|
Methods
AddAppenderToLogger(String, String)
Declaration
public static void AddAppenderToLogger(string appenderName, string loggerName)
Parameters
Type |
Name |
Description |
System.String |
appenderName |
|
System.String |
loggerName |
|
AddAppenderToLogger(String, Type)
Declaration
public static void AddAppenderToLogger(string appenderName, Type typeBeingLogged)
Parameters
Type |
Name |
Description |
System.String |
appenderName |
|
System.Type |
typeBeingLogged |
|
AddAppenderToRoot(String)
Declaration
public static void AddAppenderToRoot(string appenderName)
Parameters
Type |
Name |
Description |
System.String |
appenderName |
|
AddLogFileAppender(String, String)
Declaration
public static void AddLogFileAppender(string appenderName, string fileName)
Parameters
Type |
Name |
Description |
System.String |
appenderName |
|
System.String |
fileName |
|
FindFile(String)
Declaration
public static string FindFile(string suggestedFilePath)
Parameters
Type |
Name |
Description |
System.String |
suggestedFilePath |
|
Returns
Type |
Description |
System.String |
|
GetLogger(String)
Declaration
public static Logger GetLogger(string loggerName)
Parameters
Type |
Name |
Description |
System.String |
loggerName |
|
Returns
GetLogger(Type)
Declaration
public static Logger GetLogger(Type loggerType)
Parameters
Type |
Name |
Description |
System.Type |
loggerType |
|
Returns
Initialize()
Declaration
public static void Initialize()
Declaration
public static void Reconfigure()
ResetConfiguration()
Declaration
public static void ResetConfiguration()
SetLoggerLevel(String, LogLevel)
Declaration
public static void SetLoggerLevel(string loggerName, LogLevel level)
Parameters
Type |
Name |
Description |
System.String |
loggerName |
|
LogLevel |
level |
|
SetLoggerLevel(Type, LogLevel)
Declaration
public static void SetLoggerLevel(Type loggerType, LogLevel level)
Parameters
Type |
Name |
Description |
System.Type |
loggerType |
|
LogLevel |
level |
|
SetRootLoggerLevel(LogLevel)
Declaration
public static void SetRootLoggerLevel(LogLevel level)
Parameters
SetThreadContextValue(String, String)
Declaration
public static void SetThreadContextValue(string key, string value)
Parameters
Type |
Name |
Description |
System.String |
key |
|
System.String |
value |
|