<?php
/**
* Thin PHP Framework (TPF) 2011-2012 http://thinphp.com
* @package app.core.log
* @license TPF License http://bit.ly/TPFLicense
*/
defined('BASE') or exit('No direct script access allowed!');
require_once BASE.'/app/core/log/Log.php';
class Logger
{
static $settings;
public static function getLogger($name)
{
global $log_i;
self::$settings = $log_i;
$newlog = new Log($name, self::$settings['log_file']);
return $newlog;
}
public static function getFileLogger($name, $filePath)
{
global $log_i;
self::$settings = $log_i;
$newlog = new Log($name, $filePath);
return $newlog;
}
}