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

set root level and log home (base) path for file appenders using MDC (context?) properties

    XMLWordPrintable

Details

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • None
    • logback-classic
    • None

    Description

      would it be possible to keep application depend only on slf4j at compile time, but still be able to pass context properties to logback.xml through MDC in a standalone app, assuming I take care not to get/access any loggers until I put the context properties into MDC?

      (I am aware that I could programatically get the root logger by name and cast it to logback Logger, and then set the level, and add a file appender, but this would require logback jars at compile time)

      Attachments

        Activity

          People

            logback-dev Logback dev list
            orcus Miroslav Obradovic
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: