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

org.apache.log4j.LogManager#exists(String) requested

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: 1.6.x
    • Fix Version/s: None
    • Component/s: log4j-over-slf4j
    • Labels:
      None
    • Environment:

      Operating System: Windows NT
      Platform: PC

      Description

      I have a library that instead of relying on the application to define the logging levels, it refuses to log unless a logger was created through the #exists(String)

      final Logger log = (name == null) ? LogManager.exists("FRAMEWORK") : LogManager.exists(name);
      if (log != null) {
      log.info(obj);
      }

      Since LogManager exists in log4j-over-slf4j, it's already been some agreement that some methods are worthy of being implemented.

      Thanks!

        Attachments

          Activity

            People

            • Assignee:
              slf4j-dev SLF4J developers list
              Reporter:
              tjrothwell TJ Rothwell
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated: