<?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); } }