- we cover some cases with cp1252 encoding for now. - extra fix: Logging.php (copied from 2.0.0)
24 lines
525 B
PHP
24 lines
525 B
PHP
<?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;
|
|
}
|
|
|
|
public static function log($p_msg){
|
|
$logger = self::getLogger();
|
|
$logger->info($p_msg);
|
|
}
|
|
}
|