master
parent
b47336085f
commit
f26738ec08
@ -0,0 +1,12 @@
|
||||
<?php
|
||||
namespace Org\Kudian;
|
||||
|
||||
use Think\Log as ThinkLog;
|
||||
|
||||
class Log
|
||||
{
|
||||
public static function write($message, $level = ThinkLog::INFO) {
|
||||
$destination = C('LOG_PATH'). 'kudian/' . date('y_m_d').'.log';
|
||||
ThinkLog::write($message, $level, '', $destination);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue