[Feedback] Modernize Logger Structure

Review Request #272 — Created Feb. 26, 2014 and submitted

pprkut
Lunr
pprkut:fao
271
lunr
Create an AbstractLogger class that implements the Log Message composition and let all specific Loggers extend from it.
Allows for a slightly cleaner implementation then always extending PHPLogger.
Switch the FileLogger to use the FAO instead of error_log(). Note that this now no longer prints a stack trace, so if you want than use a ChainLogger and combine it with the PHPLogger.
Unit tests
pprkut
leo
  1. 
      
  2. src/Lunr/Feedback/AbstractLogger.php (Diff revision 1)
     
     
     
     
     
    :P
  3. 
      
leo
  1. Ship It!
  2. 
      
pprkut
Review request changed

Status: Closed (submitted)

Change Summary:

Merged into master
Loading...