Skip to content

Commit

Permalink
Chaging the $scope parameter name to $context
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo committed Sep 20, 2014
1 parent 499512b commit f6337d0
Showing 1 changed file with 41 additions and 17 deletions.
58 changes: 41 additions & 17 deletions src/Log/Log.php
Expand Up @@ -313,7 +313,7 @@ public static function engine($name) {
* @param int|string $level The severity level of the message being written.
* The value must be an integer or string matching a known level.
* @param mixed $message Message content to log
* @param string|array $context Additioanl data to be used for logging the message.
* @param string|array $context Additional data to be used for logging the message.
* The special `scope` key can be passed to be used for further filtering of the
* log engines to be used. If a string or a numerically index array is passed, it
* will be treated as the `scope` key.
Expand Down Expand Up @@ -363,8 +363,11 @@ public static function write($level, $message, $context = []) {
* Convenience method to log emergency messages
*
* @param string $message log message
* @param string|array $scope The scope(s) a log message is being created in.
* See Cake\Log\Log::config() for more information on logging scopes.
* @param string|array $context Additional data to be used for logging the message.
* The special `scope` key can be passed to be used for further filtering of the
* log engines to be used. If a string or a numerically index array is passed, it
* will be treated as the `scope` key.
* See Cake\Log\Log::config() for more information on logging scopes.
* @return bool Success
*/
public static function emergency($message, $scope = array()) {
Expand All @@ -375,8 +378,11 @@ public static function emergency($message, $scope = array()) {
* Convenience method to log alert messages
*
* @param string $message log message
* @param string|array $scope The scope(s) a log message is being created in.
* See Cake\Log\Log::config() for more information on logging scopes.
* @param string|array $context Additional data to be used for logging the message.
* The special `scope` key can be passed to be used for further filtering of the
* log engines to be used. If a string or a numerically index array is passed, it
* will be treated as the `scope` key.
* See Cake\Log\Log::config() for more information on logging scopes.
* @return bool Success
*/
public static function alert($message, $scope = array()) {
Expand All @@ -387,8 +393,11 @@ public static function alert($message, $scope = array()) {
* Convenience method to log critical messages
*
* @param string $message log message
* @param string|array $scope The scope(s) a log message is being created in.
* See Cake\Log\Log::config() for more information on logging scopes.
* @param string|array $context Additional data to be used for logging the message.
* The special `scope` key can be passed to be used for further filtering of the
* log engines to be used. If a string or a numerically index array is passed, it
* will be treated as the `scope` key.
* See Cake\Log\Log::config() for more information on logging scopes.
* @return bool Success
*/
public static function critical($message, $scope = array()) {
Expand All @@ -399,8 +408,11 @@ public static function critical($message, $scope = array()) {
* Convenience method to log error messages
*
* @param string $message log message
* @param string|array $scope The scope(s) a log message is being created in.
* See Cake\Log\Log::config() for more information on logging scopes.
* @param string|array $context Additional data to be used for logging the message.
* The special `scope` key can be passed to be used for further filtering of the
* log engines to be used. If a string or a numerically index array is passed, it
* will be treated as the `scope` key.
* See Cake\Log\Log::config() for more information on logging scopes.
* @return bool Success
*/
public static function error($message, $scope = array()) {
Expand All @@ -411,8 +423,11 @@ public static function error($message, $scope = array()) {
* Convenience method to log warning messages
*
* @param string $message log message
* @param string|array $scope The scope(s) a log message is being created in.
* See Cake\Log\Log::config() for more information on logging scopes.
* @param string|array $context Additional data to be used for logging the message.
* The special `scope` key can be passed to be used for further filtering of the
* log engines to be used. If a string or a numerically index array is passed, it
* will be treated as the `scope` key.
* See Cake\Log\Log::config() for more information on logging scopes.
* @return bool Success
*/
public static function warning($message, $scope = array()) {
Expand All @@ -423,8 +438,11 @@ public static function warning($message, $scope = array()) {
* Convenience method to log notice messages
*
* @param string $message log message
* @param string|array $scope The scope(s) a log message is being created in.
* See Cake\Log\Log::config() for more information on logging scopes.
* @param string|array $context Additional data to be used for logging the message.
* The special `scope` key can be passed to be used for further filtering of the
* log engines to be used. If a string or a numerically index array is passed, it
* will be treated as the `scope` key.
* See Cake\Log\Log::config() for more information on logging scopes.
* @return bool Success
*/
public static function notice($message, $scope = array()) {
Expand All @@ -435,8 +453,11 @@ public static function notice($message, $scope = array()) {
* Convenience method to log debug messages
*
* @param string $message log message
* @param string|array $scope The scope(s) a log message is being created in.
* See Cake\Log\Log::config() for more information on logging scopes.
* @param string|array $context Additional data to be used for logging the message.
* The special `scope` key can be passed to be used for further filtering of the
* log engines to be used. If a string or a numerically index array is passed, it
* will be treated as the `scope` key.
* See Cake\Log\Log::config() for more information on logging scopes.
* @return bool Success
*/
public static function debug($message, $scope = array()) {
Expand All @@ -447,8 +468,11 @@ public static function debug($message, $scope = array()) {
* Convenience method to log info messages
*
* @param string $message log message
* @param string|array $scope The scope(s) a log message is being created in.
* See Cake\Log\Log::config() for more information on logging scopes.
* @param string|array $context Additional data to be used for logging the message.
* The special `scope` key can be passed to be used for further filtering of the
* log engines to be used. If a string or a numerically index array is passed, it
* will be treated as the `scope` key.
* See Cake\Log\Log::config() for more information on logging scopes.
* @return bool Success
*/
public static function info($message, $scope = array()) {
Expand Down

0 comments on commit f6337d0

Please sign in to comment.