edtFTPnet/PRO - Secure FTP component for .NET | Free Trial | Pricing
Click or drag to resize

Logger Class

Logger class that mimics log4net Logger class
Inheritance Hierarchy
SystemObject
  EnterpriseDT.Util.DebugLogger

Namespace:  EnterpriseDT.Util.Debug
Assembly:  edtFTPnetPRO (in edtFTPnetPRO.dll) Version: 12.3.0.0
Syntax
public class Logger

The Logger type exposes the following members.

Properties
  NameDescription
Public propertyStatic memberCurrentLevel
Set all loggers to this level
Public propertyDebugEnabled
Is debug logging enabled?
Public propertyErrorEnabled
Is error logging enabled?
Public propertyInfoEnabled
Is info logging enabled for the supplied level?
Public propertyStatic memberLogToConsole
If this property is true then logs will be written to the console.
Public propertyStatic memberLogToTrace
If this property is true then logs will be written using Trace.
Public propertyStatic memberPrimaryLogFile
The primary log file is simply the first file appender that has been added to the logger.
Public propertyStatic memberShowClassNames
If true then class-names will be shown in log.
Public propertyStatic memberShowTimestamp
If true then timestamps will be shown in log.
Top
Methods
  NameDescription
Public methodStatic memberAddAppender
Add an appender to our list
Public methodStatic memberClearAppenders
Close and remove all appenders
Public methodStatic memberClearTag
Public methodDebug(String)
Log a debug level message
Public methodDebug(String, Exception)
Log a debug level message
Public methodDebug(String, Object)
Log a debug level message
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodError(Exception)
Log an error level message
Public methodError(String)
Log an error level message
Public methodError(String, Exception)
Log an error level message
Public methodError(String, Exception, Object)
Log an error level message
Public methodFatal(String)
Log a fatal level message
Public methodFatal(String, Exception)
Log a fatal level message
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodStatic memberGetLogger(String)
Get a logger for the supplied class
Public methodStatic memberGetLogger(Type)
Get a logger for the supplied class
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodInfo(String)
Log an info level message
Public methodInfo(String, Exception)
Log an info level message
Public methodInfo(String, Object)
Log an info level message
Public methodIsEnabledFor
Is logging enabled for the supplied level?
Public methodLog
Log a message using the given level.
Public methodLogObject
Logs the public properties of an object.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodStatic memberRemoveAppender
Remove an appender from our list
Public methodStatic memberSetTag
Public methodStatic memberShutdown
Close and remove all appenders and loggers
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodWarn(String)
Log a warning level message
Public methodWarn(String, Exception)
Log a warning level message
Public methodWarn(String, Exception, Object)
Log an warning level message
Top
Events
  NameDescription
Public eventStatic memberLogMessageReceived
If this event is set then all logging events are directed to the event as well as the loggers.
Top
See Also