Click or drag to resize
LogFactory Methods

The LogFactory type exposes the following members.

Methods
  NameDescription
Public methodCreateNullLogger
Creates a logger that discards all log messages.
Public methodDisableLogging Obsolete.
Decreases the log enable counter and if it reaches -1 the logs are disabled.
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Protected methodDispose(Boolean)
Releases unmanaged and - optionally - managed resources.
Public methodEnableLogging Obsolete.
Increases the log enable counter and if it reaches 0 the logs are disabled.
Public methodFlush
Flush any pending log messages (in case of asynchronous targets).
Public methodFlush(Int32)
Flush any pending log messages (in case of asynchronous targets).
Public methodFlush(TimeSpan)
Flush any pending log messages (in case of asynchronous targets).
Public methodFlush(AsyncContinuation)
Flush any pending log messages (in case of asynchronous targets).
Public methodFlush(AsyncContinuation, Int32)
Flush any pending log messages (in case of asynchronous targets).
Public methodFlush(AsyncContinuation, TimeSpan)
Flush any pending log messages (in case of asynchronous targets).
Public methodGetCurrentClassLogger
Gets the logger with the name of the current class.
Public methodGetCurrentClassLogger(Type)
Gets a custom logger with the name of the current class. Use loggerType to pass the type of the needed Logger.
Public methodGetCurrentClassLoggerT
Gets the logger with the name of the current class.
Public methodGetLogger(String)
Gets the specified named logger.
Public methodGetLogger(String, Type)
Gets the specified named logger. Use loggerType to pass the type of the needed Logger.
Public methodGetLoggerT(String)
Gets the specified named logger.
Public methodIsLoggingEnabled
Returns if logging is currently enabled.
Protected methodOnConfigurationChanged
Invoke the Changed event; called whenever list changes
Public methodReconfigExistingLoggers
Loops through all loggers previously returned by GetLogger and recalculates their target and filter list. Useful after modifying the configuration programmatically to ensure that all loggers have been properly configured.
Public methodResumeLogging
Increases the log enable counter and if it reaches 0 the logs are disabled.
Public methodSuspendLogging
Decreases the log enable counter and if it reaches -1 the logs are disabled.
Top
See Also