You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
<?php
|
|
namespace Base\Tool;
|
|
|
|
use Think\Log as ThinkLog;
|
|
|
|
class Log {
|
|
public static function write($message, $level = ThinkLog::INFO, $logPath = 'common') {
|
|
$destination = C('LOG_PATH'). $logPath . '/' . date('y_m_d').'.log';
|
|
ThinkLog::write($message, $level, '', $destination);
|
|
}
|
|
} |