parent
f39f9329cc
commit
923f4ee180
|
@ -70,6 +70,22 @@ class Logging {
|
||||||
. self::toString($p_msg));
|
. self::toString($p_msg));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static function error($p_msg)
|
||||||
|
{
|
||||||
|
$bt = debug_backtrace();
|
||||||
|
|
||||||
|
$caller = array_shift($bt);
|
||||||
|
$file = basename($caller['file']);
|
||||||
|
$line = $caller['line'];
|
||||||
|
|
||||||
|
$caller = array_shift($bt);
|
||||||
|
$function = $caller['function'];
|
||||||
|
|
||||||
|
$logger = self::getLogger();
|
||||||
|
$logger->err("[$file : $function() : line $line] - "
|
||||||
|
. self::toString($p_msg));
|
||||||
|
}
|
||||||
|
|
||||||
public static function debug($p_msg)
|
public static function debug($p_msg)
|
||||||
{
|
{
|
||||||
if (!(defined('APPLICATION_ENV') && APPLICATION_ENV == "development")) {
|
if (!(defined('APPLICATION_ENV') && APPLICATION_ENV == "development")) {
|
||||||
|
|
Loading…
Reference in New Issue