log4net SDK Reference

Hierarchy Methods

The methods of the Hierarchy class are listed below. For a complete list of Hierarchy class members, see the Hierarchy Members topic.

Public Instance Methods

AddRenderer (inherited from LoggerRepositorySkeleton) Adds an object renderer for a specific class.
Clear Clear all logger definitions from the internal hashtable
Equals (inherited from Object) Determines whether the specified Object is equal to the current Object.
Exists Test if a logger exists
GetAppenders Returns all the Appenders that are currently configured
GetCurrentLoggers Returns all the currently defined loggers in the hierarchy as an Array
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.
GetLoggerOverloaded. Return a new logger instance named as the first parameter using the default factory.
GetType (inherited from Object) Gets the Type of the current instance.
IsDisabled Test if this hierarchy is disabled for the specified Level.
Log Log the logEvent through this hierarchy.
RaiseConfigurationChanged (inherited from LoggerRepositorySkeleton) Raise a configuration changed event on this repository
ResetConfiguration Reset all values contained in this hierarchy instance to their default.
Shutdown Shutting down a hierarchy will safely close and remove all appenders in all loggers including the root logger.
ToString (inherited from Object) Returns a String that represents the current Object.

Protected Instance Methods

BasicRepositoryConfigure Initialize the log4net system using the specified appender
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.
MemberwiseClone (inherited from Object) Creates a shallow copy of the current Object.
OnConfigurationChanged (inherited from LoggerRepositorySkeleton) Notify the registered listeners that the repository has had its configuration changed
OnConfigurationReset (inherited from LoggerRepositorySkeleton) Notify the registered listeners that the repository has had its configuration reset
OnLoggerCreationEvent Sends a logger creation event to all registered listeners
OnShutdown (inherited from LoggerRepositorySkeleton) Notify the registered listeners that the repository is shutting down
XmlRepositoryConfigure Initialize the log4net system using the specified config

See Also

Hierarchy Class | log4net.Repository.Hierarchy Namespace