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

"please shutdown all loggers" - we have destructors for this!

    XMLWordPrintableJSON

Details

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

    Description

      From the intro:

      "Last but not least, please shutdown all loggers, appenders and whatever with:
      LoggerManager::shutdown();"

      I guess closing open files should be handled in __desctruct().

      (I did not check how e.g. file appenders are implemented but it should be considered to flush them after writing or
      at least offer some kind of "synchronized" mode because if an application crashes, the very last message should not
      be lost just because PHP did not yet run the __destruct()).

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: