Location: PHPKode > projects > Thin PHP Framework > ngduc-Thin-PHP-Framework-d63ea45/app/core/log/Logger.php
<?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;
	}
}
Return current item: Thin PHP Framework