Apache Log4j is a java based utility and can be used with many servers for controlling logging.
This article will discuss combination of Log4j with JBoss server.
We will only talk about manipulation with the properties file and will not cover the programming aspects.
Log4j supports the following Log levels:
- FATAL: Sever errors that cause the program to crash.
- ERROR: Runtime errors or unexpected conditions.
- WARN: Simple warnings (e.g for unused API's etc)
- INFO: Runtime events ranging from startup to shutdown.
- DEBUG: Detailed information about the activity of system.
- TRACE: Much detailed information about system activity.
Please bear in mind that if you turn the logging level to DEBUG / TRACE, there will be a lot of information being produced in log files.
Following files need to be edited:
{JBOSS-installation}/server/{instance-name}/conf/jboss-log4j.xml
Edit it, you will see values like:
< priority value = "INFO" />
change these values to whichever level suits your requirements.
Restart the server afterwards.
No comments:
Post a Comment