feature 3221 Add Logger class

git-svn-id: http://piwigo.org/svn/trunk@31102 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
mistic100
2015-04-24 14:00:50 +00:00
parent becc0117f0
commit 0c576ea19d
7 changed files with 542 additions and 96 deletions
-19
View File
@@ -204,25 +204,6 @@ function ws_std_get_tag_xml_attributes()
);
}
/**
* Writes info to the log file
*/
function ws_logfile($string)
{
global $conf;
if (!$conf['ws_enable_log'])
{
return true;
}
file_put_contents(
$conf['ws_log_filepath'],
'['.date('c').'] '.$string."\n",
FILE_APPEND
);
}
/**
* create a tree from a flat list of categories, no recursivity for high speed
*/