AquaLogic Interaction Development Kit (IDK) 6.0.0 |

# LogFactory.GetLogger Method

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.

#### Overload List

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

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,Type);

#### See Also

LogFactory Class | Plumtree.Remote.Logging Namespace