Uploaded image for project: 'SLF4J'
  1. SLF4J
  2. SLF4J-177

[patch] Enhanced SimpleLogger implementation

    XMLWordPrintable

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • None
    • None
    • Implementations
    • None
    • Operating System: All
      Platform: All

    Description

      I recently had to enhance SimpleLogger by back-porting some functionalities of commons-logging's SimpleLog into it.

      Namely, I have added the following:

      • optional configuration file; if none found, you get the exact same set of features as the currently released SimpleLogger.
      • enable to log more than the info log level
      • enable to set different log levels for different Loggers
      • enable to show/hide thread name
      • very primitive log messages customisation (about the same as commons-logging)

      Once again, the new code is totally compatible in behaviour and output with the currently released SimpleLogger.
      I also made it so that current users of commons-logging can upgrade to SLF4J very easily.
      Finally, I made sure to keep SimpleLogger as simple as possible: we already have fully-fledged logging frameworks, let's not re-invent one!

      I think this new implementation would enhance the value of SLF4J, while keeping a perfect retro-compatibility with previous versions.

      Attachments

        1. SimpleLogger.java
          14 kB
          Erik Dick
        2. SimpleLogger.java
          22 kB
          Cédrik LIME

        Activity

          People

            slf4j-dev SLF4J developers list
            cedrik.lime@gmail.com Cédrik LIME
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: