Skip to content
Permalink
Browse files

Fixing method signatures in Log

  • Loading branch information...
lorenzo committed Sep 22, 2014
1 parent 8273704 commit 4ac2f902e1b3042188dac58f11e458f539fdec41
Showing with 16 additions and 16 deletions.
  1. +16 −16 src/Log/Log.php
@@ -370,8 +370,8 @@ public static function write($level, $message, $context = []) {
* See Cake\Log\Log::config() for more information on logging scopes.
* @return bool Success
*/
public static function emergency($message, $scope = array()) {
return static::write(static::$_levelMap['emergency'], $message, $scope);
public static function emergency($message, $context = array()) {
return static::write(static::$_levelMap['emergency'], $message, $context);
}
/**
@@ -385,8 +385,8 @@ public static function emergency($message, $scope = array()) {
* See Cake\Log\Log::config() for more information on logging scopes.
* @return bool Success
*/
public static function alert($message, $scope = array()) {
return static::write(static::$_levelMap['alert'], $message, $scope);
public static function alert($message, $context = array()) {
return static::write(static::$_levelMap['alert'], $message, $context);
}
/**
@@ -400,8 +400,8 @@ public static function alert($message, $scope = array()) {
* See Cake\Log\Log::config() for more information on logging scopes.
* @return bool Success
*/
public static function critical($message, $scope = array()) {
return static::write(static::$_levelMap['critical'], $message, $scope);
public static function critical($message, $context = array()) {
return static::write(static::$_levelMap['critical'], $message, $context);
}
/**
@@ -415,8 +415,8 @@ public static function critical($message, $scope = array()) {
* See Cake\Log\Log::config() for more information on logging scopes.
* @return bool Success
*/
public static function error($message, $scope = array()) {
return static::write(static::$_levelMap['error'], $message, $scope);
public static function error($message, $context = array()) {
return static::write(static::$_levelMap['error'], $message, $context);
}
/**
@@ -430,8 +430,8 @@ public static function error($message, $scope = array()) {
* See Cake\Log\Log::config() for more information on logging scopes.
* @return bool Success
*/
public static function warning($message, $scope = array()) {
return static::write(static::$_levelMap['warning'], $message, $scope);
public static function warning($message, $context = array()) {
return static::write(static::$_levelMap['warning'], $message, $context);
}
/**
@@ -445,8 +445,8 @@ public static function warning($message, $scope = array()) {
* See Cake\Log\Log::config() for more information on logging scopes.
* @return bool Success
*/
public static function notice($message, $scope = array()) {
return static::write(static::$_levelMap['notice'], $message, $scope);
public static function notice($message, $context = array()) {
return static::write(static::$_levelMap['notice'], $message, $context);
}
/**
@@ -460,8 +460,8 @@ public static function notice($message, $scope = array()) {
* See Cake\Log\Log::config() for more information on logging scopes.
* @return bool Success
*/
public static function debug($message, $scope = array()) {
return static::write(static::$_levelMap['debug'], $message, $scope);
public static function debug($message, $context = array()) {
return static::write(static::$_levelMap['debug'], $message, $context);
}
/**
@@ -475,8 +475,8 @@ public static function debug($message, $scope = array()) {
* See Cake\Log\Log::config() for more information on logging scopes.
* @return bool Success
*/
public static function info($message, $scope = array()) {
return static::write(static::$_levelMap['info'], $message, $scope);
public static function info($message, $context = array()) {
return static::write(static::$_levelMap['info'], $message, $context);
}
}

0 comments on commit 4ac2f90

Please sign in to comment.
You can’t perform that action at this time.