0
0
Fork 0
mirror of https://github.com/salesagility/SuiteCRM.git synced 2025-02-06 23:10:03 +00:00
salesagility_SuiteCRM/include/Smarty/plugins/function.log.php
Dillon-Brown acf296012d Revert "Merge branch 'hotfix' into develop"
This reverts commit d08f74643d, reversing
changes made to b137595f91.
2018-07-31 15:24:44 +01:00

11 lines
378 B
PHP

<?php
use SuiteCRM\ErrorMessage;
function smarty_function_log($params, &$smarty) {
$from = $smarty->_plugins['function']['log'][1] . ':' . $smarty->_plugins['function']['log'][2];
$message = "log call at: $from - " . $params['msg'];
$level = isset($params['level']) ? $params['level'] : ErrorMessage::DEFAULT_LOG_LEVEL;
ErrorMessage::log($message, $level);
}