mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-03-11 16:35:38 +00:00
add optional parameter $mask to getLogger()
This commit is contained in:
parent
2a027105cb
commit
a9f3b7a6a6
|
@ -395,7 +395,7 @@ function getFilenameByDocname($content) { /* {{{ */
|
|||
return mb_ereg_replace("([^\w\s\d\-_~,;\[\]\(\).])", '', $filename);
|
||||
} /* }}} */
|
||||
|
||||
function getLogger($prefix='') { /* {{{ */
|
||||
function getLogger($prefix='', $mask=PEAR_LOG_INFO) { /* {{{ */
|
||||
global $settings;
|
||||
|
||||
if($settings->_logFileEnable) {
|
||||
|
@ -407,7 +407,7 @@ function getLogger($prefix='') { /* {{{ */
|
|||
@mkdir($settings->_contentDir.'log');
|
||||
if(file_exists($settings->_contentDir.'log') && is_dir($settings->_contentDir.'log')) {
|
||||
$logger = Log::factory('file', $logname);
|
||||
$logger->setMask(Log::MAX(PEAR_LOG_DEBUG));
|
||||
$logger->setMask(Log::MAX($mask));
|
||||
} else
|
||||
$logger = null;
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue
Block a user