Plumtree EDK (Enterprise Web Development Kit) 5.4.0

LogFactory Members

LogFactory overview

Public Static Methods

GetApplicationName Gets the logging application name initialized or configured into the EDK logging framework, or empty string if logging is not initialized. This matches the "server" name required by Plumtree Logging Spy or the Plumtree Logger.
GetLoggerOverloaded. Returns a logger instance associated with the named component and the given class. If logging is not initialized the framework will attempt to initialize logging from the external configuration file (web.xml / Web.config). If a value is found for the logging application name then the logging framework will be initialized before the logger instance is returned. Any log messages sent to the logger before the logging framework is initialized will be discarded.
Initialize Initializes logging with the specified logging application name and whether or not to send log messages to receivers on the network. Any logger instances obtained before the logging framework was initialized will be enabled to send messages after this method is called successfully. If an external configuration file is present (web.xml / Web.config), the values set in the configuration file take priority over values passed in the parameters.
IsInitialized Returns true if the EDK logging framework has been initialized either from the logging API or from external configuration. Returns false if the logging framework has not been initialized, including the case of an unusable external configuration (e.g. from Web.config). Log messages sent to an uninitialized logger will be discarded.
IsLoggingToNetwork Returns true if the EDK logging framework is configured to send log messages to receivers on the local network, false if messages are only sent to receivers on the local machine.

Public Instance Methods

Equals (inherited from Object) Determines whether the specified Object is equal to the current Object.
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.
ToString (inherited from Object) Returns a String that represents the current Object.

See Also

LogFactory Class | Plumtree.Remote.Logging Namespace