The log4net Global Context.
For a list of all members of this type, see GlobalContext Members.
This type is safe for multithreaded operations.
GlobalContext provides a location for global debugging information to be stored.
The global context has a properties map and these properties can be included in the output of log messages. The PatternLayout supports selecting and outputing these properties.
By default the
log4net:HostName property is set to the name of the current machine.
[C#] GlobalContext.Properties["hostname"] = Environment.MachineName;
Assembly: log4net (in log4net.dll)