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

Can not write customized logger

    XMLWordPrintable

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 1.1.7
    • logback-classic

    Description

      We are trying to use SLF4J with Logback in our application, and we want to implement our own Logger to have our customized logic.
      We are able to do it when using Log4j with SLF4J, the way we are doing in Log4j is excluding their implementation of SLF4J jar, and have our implementation of StaticLoggerBinder to return a customized LoggerFactory, inside our implementation of LoggerFactory, we wrap log4j logger with our Logger, so we can customize the logger APIs, when we are trying to copy the way we are doing in Log4j into Logback, we are out of luck, since log4j-classic.jar include StaticLoggerBinder.
      Can we move the StaticLoggerBinder into a different jar?

      Attachments

        Activity

          People

            logback-dev Logback dev list
            wenjiezhang2013@gmail.com Wenjie Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: