Grails
  1. Grails
  2. GRAILS-8543

Unable to set log4j ConsoleAppender to target System.err

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 2.0 final
    • Fix Version/s: None
    • Component/s: Configuration
    • Labels:

      Description

      I used to be able to create a consoleAppender to target the System.err like so:

      log4j =

      { console( name: "errorAppender", layout:pattern(conversionPattern: %d %-5p %c - %m%n), threshold: Level.WARN, target: "System.err") ... }

      When I upgraded from 2.0 M1 to 2.0 final, this no longer works. The log messages seem to disappear unless I remove the target param.

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Dan Prietti
          • Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Last Reviewed:

              Development