src/classes/CCLog.php
public static function write() 
	{
		if ( empty( static::$_data ) )
		{
			return;
		}
		
		$buffer = date("H:i:s")." - ".CCServer::method().' '.CCServer::server('REQUEST_URI')."\n";
		$buffer .= implode( "\n", static::$_data );
		
		CCFile::append( CCStorage::path( 'logs/'.date( 'Y-m' ).'/'.date( 'd' ).'.log' ), $buffer."\n" );
		
		// clear
		static::clear();
	}
public static function write() 
	{
		if ( empty( static::$_data ) )
		{
			return;
		}
		
		$buffer = date("H:i:s")." - ".CCServer::method().' '.CCServer::server('REQUEST_URI')."\n";
		$buffer .= implode( "\n", static::$_data );
		
		CCFile::append( CCStorage::path( 'logs/'.date( 'Y-m' ).'/'.date( 'd' ).'.log' ), $buffer."\n" );
		
		// clear
		static::clear();
	}
public static function write ( ) { if ( empty ( static :: $ _data ) ) { return ; } $ buffer = date ( "H:i:s" ) . " - " . CCServer :: method ( ) . ' ' . CCServer :: server ( 'REQUEST_URI' ) . "\n" ; $ buffer .= implode ( "\n" , static :: $ _data ) ; CCFile :: append ( CCStorage :: path ( 'logs/' . date ( 'Y-m' ) . '/' . date ( 'd' ) . '.log' ) , $ buffer . "\n" ) ; // clear static :: clear ( ) ; }
write the log down to disk

@return void
write the log down to disk