Skip to content
Permalink
Browse files

Update code in Log.php

  • Loading branch information...
mehdi-fathi committed May 17, 2017
1 parent d8240ad commit c78aec97958fa8aabbf801503899fdf07cf9e821
Showing with 8 additions and 8 deletions.
  1. +8 −8 src/Log/Log.php
@@ -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);
}
/**
@@ -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);
}
/**
@@ -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);
}
/**
@@ -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);
}
/**
@@ -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);
}
/**
@@ -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);
}
/**
@@ -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);
}
/**
@@ -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.
You can’t perform that action at this time.