master
parent
0917ad7f34
commit
2e9176a9d5
@ -0,0 +1,12 @@
|
|||||||
|
<?php
|
||||||
|
namespace Org\SumaPay;
|
||||||
|
|
||||||
|
use Think\Log;
|
||||||
|
|
||||||
|
class PlatformLog
|
||||||
|
{
|
||||||
|
public static function write($message, $path, $level = Log::INFO) {
|
||||||
|
$destination = C('LOG_PATH'). $path . '/' . date('y_m_d').'.log';
|
||||||
|
Log::write($message, $level, '', $destination);
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue