AquaLogic Interaction Development Kit (IDK) 6.0.0 |

# LogFactory.GetLogger Method (String, String)

Returns a logger instance associated with the named component and the named location. The named location may describe a class or other location within the code.

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,
string loggingLocation
);

#### Parameters

componentName
  A string identifying a category of related log messages.
loggingLocation
  A name specifying a class or specific 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