Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-6205

Make server.log logging level configurable via system property

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Done
    • Major
    • JBossAS-5.0.0.GA
    • None
    • Logging
    • None
    • 0
    • 0% 0%

    Description

      Add <param name="Threshold" value="${jboss.server.log.threshold}"/> to the FILE appender config in jboss-log4j.xml.

      Log4j performs a system property substitution (see org.apache.log4j.xml.DomConfigurator.subst()). It doesn't seem to support our default value syntax, e.g.

      {jboss.server.log.threshold:DEBUG}

      , but starting the AS w/o setting the system property results in DEBUG logging.

      If we want a default other than DEBUG (or don't like counting on log4j to use DEBUG if the property isn't set), we can check the system property in Log4jService and set it if not set.

      Attachments

        Activity

          People

            bstansbe@redhat.com Brian Stansberry
            bstansbe@redhat.com Brian Stansberry
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: