Logger.properties file
Use the Logger.properties file to set logger attributes for the component.
The properties file is loaded the first time the Logger.getLogger(loggername) method is called within an application. The Logger.properties file must be either on the WAS class path, or the context class path.
The logging subsystem uses Common Base Events to represent all the messages in the WAS activity.log file. We can specify our own event factory template to be used with your loggers. Use the eventfactory property in the Logger.properties file. See Sample Common Base Event template for details on the Common Base Event template.
By convention, the name of the event factory template file should be the fully qualified package name of the package using the template. The name of the file must end with the .event.xml extension. For example, a valid event factory template file name for the com.abc.somepackage package is:
com.abc.somepackage.event.xml
When specified the property value for the eventfactory property in the Logger.properties file, include the full path name with no leading slash relative to the root of the class path entry. Do not include the .event.xml extension.
For example, if the template files from the previous example are located in the com/abc/templates directory, the valid value for the eventfactory property is:
com/abc/templates/com.abc.somepackage
Finally, if this event factory template file is used by the com.abc.somepackage.SomeClass logger, then the following entry will appear in the Logger.properties file:
com.abc.somepackage.SomeClass.eventfactory=com/abc/templates/com.abc.somepackage
This topic references one or more of the application server log files. As a recommended alternative, we can configure the server to use the High Performance Extensible Logging (HPEL) log and trace infrastructure instead of using SystemOut.log , SystemErr.log, trace.log, and activity.log files on distributed and IBM i systems. We can also use HPEL in conjunction with the native z/OS logging facilities. If we are using HPEL, we can access all of the log and trace information using the LogViewer command-line tool from the server profile bin directory. See the information about using HPEL to troubleshoot applications for more information on using HPEL.
Related tasks
Logging Common Base Events in WebSphere Application Server Use High Performance Extensible Logging to troubleshoot applications
Sample Common Base Event template
Related information:
Logger.properties file for configuring logger settings Log level settings