CC-2186: Integration of a logger tool

-initial check-in. Everything appears to be working...
This commit is contained in:
martin 2011-04-20 00:46:03 -04:00
parent 3b1e79a5d8
commit 171828f8ad
6 changed files with 50 additions and 5 deletions

View file

@ -0,0 +1,19 @@
<?php
class Logging {
private static $_logger;
private static $_path;
public static function getLogger(){
if (!isset(self::$logger)) {
$writer = new Zend_Log_Writer_Stream(self::$_path);
self::$_logger = new Zend_Log($writer);
}
return self::$_logger;
}
public static function setLogPath($path){
self::$_path = $path;
}
}