Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Update code in Log.php
  • Loading branch information
mehdi-fathi committed May 17, 2017
1 parent d8240ad commit c78aec9
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/Log/Log.php
Expand Up @@ -402,7 +402,7 @@ public static function write($level, $message, $context = [])
*/
public static function emergency($message, $context = [])
{
return static::write('emergency', $message, $context);
return static::write(__FUNCTION__, $message, $context);
}

/**
Expand All @@ -418,7 +418,7 @@ public static function emergency($message, $context = [])
*/
public static function alert($message, $context = [])
{
return static::write('alert', $message, $context);
return static::write(__FUNCTION__, $message, $context);
}

/**
Expand All @@ -434,7 +434,7 @@ public static function alert($message, $context = [])
*/
public static function critical($message, $context = [])
{
return static::write('critical', $message, $context);
return static::write(__FUNCTION__, $message, $context);
}

/**
Expand All @@ -450,7 +450,7 @@ public static function critical($message, $context = [])
*/
public static function error($message, $context = [])
{
return static::write('error', $message, $context);
return static::write(__FUNCTION__, $message, $context);
}

/**
Expand All @@ -466,7 +466,7 @@ public static function error($message, $context = [])
*/
public static function warning($message, $context = [])
{
return static::write('warning', $message, $context);
return static::write(__FUNCTION__, $message, $context);
}

/**
Expand All @@ -482,7 +482,7 @@ public static function warning($message, $context = [])
*/
public static function notice($message, $context = [])
{
return static::write('notice', $message, $context);
return static::write(__FUNCTION__, $message, $context);
}

/**
Expand All @@ -498,7 +498,7 @@ public static function notice($message, $context = [])
*/
public static function debug($message, $context = [])
{
return static::write('debug', $message, $context);
return static::write(__FUNCTION__, $message, $context);
}

/**
Expand All @@ -514,6 +514,6 @@ public static function debug($message, $context = [])
*/
public static function info($message, $context = [])
{
return static::write('info', $message, $context);
return static::write(__FUNCTION__, $message, $context);
}
}

0 comments on commit c78aec9

Please sign in to comment.