Oracle® WebCenter Interaction Development Kit 10.3.3.0.0

LogFactory.GetLogger Method (String, Type)

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.config). If a value is found for the logging application name, 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.

public static ILogger GetLogger(
   string componentName,
   Type loggingClass
);

Parameters

componentName
A string identifying a category of related log messages.
loggingClass
A class instance specifying the location for this logger's messages.

Return Value

A logger instance for the named component and location context.

See Also

LogFactory Class | Plumtree.Remote.Logging Namespace | LogFactory.GetLogger Overload List