CC-2186: Integration of a logger tool
-initial check-in. Everything appears to be working...
This commit is contained in:
parent
3b1e79a5d8
commit
171828f8ad
6 changed files with 50 additions and 5 deletions
19
airtime_mvc/application/logging/Logging.php
Normal file
19
airtime_mvc/application/logging/Logging.php
Normal 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;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue