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

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

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.6.x
    • log4j-over-slf4j
    • None
    • 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

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

            Dates

              Created:
              Updated: