edtFTPnet/PRO - Secure FTP component for .NET | Free Trial | Pricing

Logger Class

Logger class that mimics log4net Logger class

Definition

Namespace: EnterpriseDT.Util.Debug
Assembly: edtFTPnetPRO (in edtFTPnetPRO.dll) Version: 12.7.0.0
C#
public class Logger
Inheritance
Object    Logger

Properties

CurrentLevel Set all loggers to this level
DebugEnabled Is debug logging enabled?
ErrorEnabled Is error logging enabled?
InfoEnabled Is info logging enabled for the supplied level?
LogToConsole If this property is true then logs will be written to the console.
LogToTrace If this property is true then logs will be written using Trace.
PrimaryLogFile The primary log file is simply the first file appender that has been added to the logger.
ShowClassNamesIf true then class-names will be shown in log.
ShowTimestampIf true then timestamps will be shown in log.

Methods

AddAppender Add an appender to our list
ClearAppenders Close and remove all appenders
ClearTag 
Debug(String) Log a debug level message
Debug(String, Exception) Log a debug level message
Debug(String, Object)Log a debug level message
EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Error(Exception) Log an error level message
Error(String) Log an error level message
Error(String, Exception) Log an error level message
Error(String, Exception, Object)Log an error level message
Fatal(String) Log a fatal level message
Fatal(String, Exception) Log a fatal level message
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetLogger(String) Get a logger for the supplied class
GetLogger(Type) Get a logger for the supplied class
GetTypeGets the Type of the current instance.
(Inherited from Object)
Info(String) Log an info level message
Info(String, Exception) Log an info level message
Info(String, Object) Log an info level message
IsEnabledFor Is logging enabled for the supplied level?
Log Log a message using the given level.
LogObject Logs the public properties of an object.
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
RemoveAppender Remove an appender from our list
SetTag 
Shutdown Close and remove all appenders and loggers
ToStringReturns a string that represents the current object.
(Inherited from Object)
Warn(String) Log a warning level message
Warn(String, Exception) Log a warning level message
Warn(String, Exception, Object)Log an warning level message

Events

LogMessageReceived If this event is set then all logging events are directed to the event as well as the loggers.

See Also