Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-478

log4j ConsoleAppender won't display messages with per-deployment logging

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Out of Date
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Logging
    • Labels:
      None

      Description

      Add the following log4j.properties file to a deployment and try to log.

      # Root logger option
      log4j.rootLogger=INFO, stdout
      
      # Direct log messages to stdout
      log4j.appender.stdout=org.apache.log4j.ConsoleAppender
      log4j.appender.stdout.Target=System.out
      log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
      log4j.appender.stdout.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jamezp James Perkins
              Reporter:
              jamezp James Perkins
              Votes:
              6 Vote for this issue
              Watchers:
              9 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: