Uploaded image for project: 'logback'
  1. logback
  2. LOGBACK-902

Provide a way to set System.out and System.err used by logback

    XMLWordPrintable

Details

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • None
    • None
    • None

    Description

      Something like :

      LoggerContext loggerContext = (LoggerContext) LoggerFactory.getILoggerFactory();
      loggerContext.setSystemStreams(System.out, System.err);
      

      So we can intercept direct access to system stream and add log information to it (date, thread, ...) while the ConsoleAppender and other logback component access to console streams.

      Attachments

        Activity

          People

            logback-dev Logback dev list
            gaellalire Gael Lalire
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: