Ignore:
Timestamp:
Apr 24, 2015, 4:00:50 PM (9 years ago)
Author:
mistic100
Message:

feature 3221 Add Logger class

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/ws_functions.inc.php

    r26461 r31102  
    206206
    207207/**
    208  * Writes info to the log file
    209  */
    210 function ws_logfile($string)
    211 {
    212   global $conf;
    213 
    214   if (!$conf['ws_enable_log'])
    215   {
    216     return true;
    217   }
    218 
    219   file_put_contents(
    220     $conf['ws_log_filepath'],
    221     '['.date('c').'] '.$string."\n",
    222     FILE_APPEND
    223     );
    224 }
    225 
    226 /**
    227208 * create a tree from a flat list of categories, no recursivity for high speed
    228209 */
Note: See TracChangeset for help on using the changeset viewer.