- Thu Dec 07, 2017 12:16 am
#812467
NOTE: this problem is solved in version 3.3.0 and later, so only use these instructions for PM 3.1 - 3.2. See: https://wiki.processmaker.com/3.3/Proce ... _On_or_Off
ProcessMaker added a new logging feature in version 3.1 and later to document every action taken by ProcessMaker. The log files are located at:
{install-directory}/processmaker/shared/sites/{workspace}/log/processmaker-YYYY-MM-DD.log
For example:
/opt/processmaker/shared/sites/workflow/log/processmaker-2017-09-19.log
This new logging is useful if your organization needs auditing of actions in ProcessMaker, but it also slows down ProcessMaker and consumes a large amount of disk space on the server.
If wishing to turn off the new logging, then edit the file {install-directory}/processmaker/gulliver/system/class.bootstrap.php with a plain text editor.
Changes lines 2945 - 2951 from:
ProcessMaker added a new logging feature in version 3.1 and later to document every action taken by ProcessMaker. The log files are located at:
{install-directory}/processmaker/shared/sites/{workspace}/log/processmaker-YYYY-MM-DD.log
For example:
/opt/processmaker/shared/sites/workflow/log/processmaker-2017-09-19.log
This new logging is useful if your organization needs auditing of actions in ProcessMaker, but it also slows down ProcessMaker and consumes a large amount of disk space on the server.
If wishing to turn off the new logging, then edit the file {install-directory}/processmaker/gulliver/system/class.bootstrap.php with a plain text editor.
Changes lines 2945 - 2951 from:
Code: Select all
To:
public static function registerMonolog($channel, $level, $message, $context, $ws, $file = 'cron.log', $pathData = PATH_DATA)
{
$fileLog = $pathData .'sites'. PATH_SEP . $ws . PATH_SEP . 'log' . PATH_SEP . $file;
$registerLogger = &MonologProvider::getSingleton($channel, $fileLog);
$registerLogger->addLog($level, $message, $context);
}
Code: Select all
Now ProcessMaker won't add content to the log files. public static function registerMonolog($channel, $level, $message, $context, $ws, $file = 'cron.log', $pathData = PATH_DATA)
{
$fileLog = $pathData .'sites'. PATH_SEP . $ws . PATH_SEP . 'log' . PATH_SEP . $file;
//$registerLogger = &MonologProvider::getSingleton($channel, $fileLog);
//$registerLogger->addLog($level, $message, $context);
}