log4net SDK Reference

Logger Members

Logger overview

Public Instance Properties

Additivity Gets or sets a value indicating if child loggers inherit their parent's appenders.
Appenders Get the appenders contained in this logger as an ICollection.
EffectiveLevel Gets the effective level for this logger.
Hierarchy Gets or sets the Hierarchy where this Logger instance is attached to.
Level Gets or sets the assigned Level, if any, for this Logger.
Name Gets the logger name.
Parent Gets or sets the parent logger in the hierarchy.
Repository Gets the ILoggerRepository where this Logger instance is attached to.

Public Instance Methods

AddAppender Add newAppender to the list of appenders of this Logger instance.
CloseNestedAppenders Closes all attached appenders implementing the IAppenderAttachable interface.
Equals (inherited from Object) Determines whether the specified Object is equal to the current Object.
GetAppender Look for the appender named as name
GetHashCode (inherited from Object) Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetType (inherited from Object) Gets the Type of the current instance.
IsEnabledFor Checks if this logger is enabled for a given Level passed as parameter.
LogOverloaded. This is the most generic printing method that is intended to be used by wrappers.
RemoveAllAppenders Remove all previously added appenders from this Logger instance.
RemoveAppenderOverloaded. Remove the appender passed as parameter form the list of appenders.
ToString (inherited from Object) Returns a String that represents the current Object.

Protected Instance Constructors

Logger Constructor This constructor created a new Logger instance and sets its name.

Protected Instance Methods

CallAppenders Deliver the LoggingEvent to the attached appenders.
Finalize (inherited from Object) Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
ForcedLogOverloaded. Creates a new logging event and logs the event without further checks.
MemberwiseClone (inherited from Object) Creates a shallow copy of the current Object.

See Also

Logger Class | log4net.Repository.Hierarchy Namespace