Uploaded image for project: 'Log4php'
  1. Log4php
  2. LOG4PHP-61

Stick with log4j and allow Logger::getLogger(...)

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.2.0
    • 2.0.0
    • Code
    • None

    Description

      Hello

      Both log4j and JDK Logger are suggest using Logger::getLogger() as you can see in:

      http://java.sun.com/j2se/1.4.2/docs/guide/util/logging/overview.html
      http://logging.apache.org/log4j/1.2/manual.html

      I admit that I don't yet understand why there is a LoggerManager class and how it relates to the Logger class but we should try to copy & paste as much as possible from the existing
      log4j (and log4perl etc) projects. It's log4xxx nevertheless and what would be the benefit from a cross-language standard if we start diversing from it at the very first command

      A patch will be attached (I didn't try out if the phpdoc looks good)

      bye,

      christian

      Attachments

        1. Logger.diff
          2 kB
          Christian Brunotte

        Activity

          People

            Unassigned Unassigned
            lathspell Christian Brunotte
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: