Logging to stdout

Properties to send logging messages to the stdout.

To send the logging messages to the stdout, define the following properties in the log4j.properties file. To set the properties, complete the following steps:

Procedure

  1. Open the log4j.properties file in a text editor.
  2. Add the following properties:
    log4j.rootLogger = DEBUG, Console, file
    log4j.appender.Console=org.apache.log4j.ConsoleAppender
    log4j.appender.Console.layout=org.apache.log4j.PatternLayout
    log4j.appender.Console.layout.conversionPattern=%m%n
  3. Save the changes to the file.