Skip to content

Commit

Permalink
Fixing method signatures in Log
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo committed Sep 22, 2014
1 parent 8273704 commit 4ac2f90
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions src/Log/Log.php
Expand Up @@ -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);
}

/**
Expand All @@ -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);
}

/**
Expand All @@ -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);
}

/**
Expand All @@ -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);
}

/**
Expand All @@ -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);
}

/**
Expand All @@ -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);
}

/**
Expand All @@ -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);
}

/**
Expand All @@ -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.