Show Table of Contents
5.4.2. Specify a Logging Profile in an Application
An application specifies the logging profile to use in its
- You must know the name of the logging profile that has been setup on the server for this application to use. Ask your server administrator for the name of the profile to use.
Procedure 5.2. Add Logging Profile configuration to an Application
MANIFEST.MFIf your application does not have a
MANIFEST.MFfile: create one with the following content, replacing NAME with the required profile name.
Manifest-Version: 1.0 Logging-Profile: NAMEIf your application already has a
MANIFEST.MFfile: add the following line to it, replacing NAME with the required profile name.
If you are using Maven and the
maven-war-plugin, you can put your MANIFEST.MF file in
src/main/resources/META-INF/and add the following configuration to your
<plugin> <artifactId>maven-war-plugin</artifactId> <configuration> <archive> <manifestFile>src/main/resources/META-INF/MANIFEST.MF</manifestFile> </archive> </configuration> </plugin>
When the application is deployed it will use the configuration in the specified logging profile for its log messages.