Log::read PHP Method

read() static public method

static public read ( $filename, $type = '' )
    static function read($filename, $type = '')
    {
        return self::get($filename, 'content', $type);
    }

Usage Example

Example #1
0
 /**
  * 记录日志
  * @param unknown $content 日志内容
  * @param boolean $if_sql 是否记录SQL
  */
 protected function log($content, $if_sql = true) {
     if ($if_sql) {
         $log = Log::read();
         if (!empty($log) && is_array($log)){
             $content .= end($log);
         }
     }
     Log::record('queue\\'.$content,Log::RUN);
 }
All Usage Examples Of Log::read