Skip to content

Commit

Permalink
Log errors
Browse files Browse the repository at this point in the history
  • Loading branch information
trecouvr committed Oct 4, 2013
1 parent ce3ffd2 commit 38c147b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Payutc/Log.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace Payutc;

use Monolog\Logger;
use Monolog\ErrorHandler;
use Monolog\Handler\StreamHandler;
use Monolog\Handler\RotatingFileHandler;
use Monolog\Handler\ChromePHPHandler;
Expand Down Expand Up @@ -101,6 +102,8 @@ public static function init($mode = null, $filename = null)
self::$logger->pushHandler(self::$chromePhpHandler);
}
self::$logger->pushHandler(self::$streamHandler);

ErrorHandler::register(self::$logger);
}

public static function debug($msg, $data = array()) {
Expand Down

0 comments on commit 38c147b

Please sign in to comment.