master
parent
db80309949
commit
55a95a9e67
@ -0,0 +1,11 @@
|
||||
<?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);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue