Creating and Using Custom Loggers
There are two approaches to using a custom logger:
Configure a custom logger in the main
<installdir>\conf\loggers.xml file and make it the default, or add it to the splitter that defines the default. In this approach, all logged messages, from the Agent and from your code, will be written to the same places.
Configure a custom logger in the main
<installdir>\conf\loggers.xml file and acquire it by name to log your messages to a non-default log file. In this case, your log messages will be separate from those coming out of the Agent.