Last active
August 29, 2015 14:03
-
-
Save drgomesp/5bcac5a157c2add251d7 to your computer and use it in GitHub Desktop.
Logger Interface Proposal for PHP
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| interface LogLevel | |
| { | |
| const INFO = 0; | |
| const NOTICE = 1; | |
| const ALERT = 2; | |
| const ERROR = 4; | |
| } | |
| interface Logger | |
| { | |
| public function log($message, $level = LogLevel::INFO, array $context = []); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment