.

Logger Class Reference
[Lib]

Logs stuffs. More...

List of all members.

Static Public Member Functions

static  log ($file, $data)
  Log $data to $file.

Detailed Description

Logs stuffs.

Author:
Gerd Riesselmann

Definition at line 8 of file logger.cls.php.


Member Function Documentation

static Logger::log ( file,
data  
) [static]

Log $data to $file.

Parameters:
string  $file
array  $data

Definition at line 15 of file logger.cls.php.

00015                                                  {
00016                 $file = Config::get_value(Config::TEMP_DIR) . 'log/' . date('Y-m-d', time()) . '_' . $file . '.log';
00017                 $handle = @fopen($file, 'a');
00018                 if ($handle)    {
00019                         $log = array_merge(array(date('Y/m/d, H:i:s', time()),  Url::current()->build()), Arr::force($data));
00020                         @fwrite($handle, '"' . implode('";"', $log) . "\"\n");
00021                         @fclose($handle);
00022                 }               
00023         }

The documentation for this class was generated from the following file: