This commit is contained in:
Paula Quispe
2018-06-13 15:28:25 -04:00
parent 18aca9dbae
commit 8919123279
5 changed files with 131 additions and 30 deletions

View File

@@ -2660,11 +2660,21 @@ class Bootstrap
* @param array $context The log context
* @param string $workspace name workspace
* @param string $file name file
* @param string $pathData path of file
* @param boolean $readLoggingLevel
*
* @return void
*/
public static function registerMonolog($channel, $level, $message, $context, $workspace, $file = 'cron.log', $pathData = PATH_DATA)
public static function registerMonolog(
$channel,
$level,
$message,
$context,
$workspace,
$file = 'cron.log',
$readLoggingLevel = true
)
{
$registerLogger = MonologProvider::getSingleton($channel, $file);
$registerLogger = MonologProvider::getSingleton($channel, $file, $readLoggingLevel);
$registerLogger->addLog($level, $message, $context);
}