Plumtree EDK (Enterprise Web Development Kit) 5.4.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.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.

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