format(DATE_ATOM); file_put_contents( Hybrid_Auth::$config["debug_file"], "DEBUG -- " . $_SERVER['REMOTE_ADDR'] . " -- " . $datetime . " -- " . $message . " -- " . print_r($object, true) . "\n", FILE_APPEND ); } } public static function info( $message ) { if( Hybrid_Auth::$config["debug_mode"] ){ $datetime = new DateTime(); $datetime = $datetime->format(DATE_ATOM); file_put_contents( Hybrid_Auth::$config["debug_file"], "INFO -- " . $_SERVER['REMOTE_ADDR'] . " -- " . $datetime . " -- " . $message . "\n", FILE_APPEND ); } } public static function error($message, $object = NULL) { if( Hybrid_Auth::$config["debug_mode"] ){ $datetime = new DateTime(); $datetime = $datetime->format(DATE_ATOM); file_put_contents( Hybrid_Auth::$config["debug_file"], "ERROR -- " . $_SERVER['REMOTE_ADDR'] . " -- " . $datetime . " -- " . $message . " -- " . print_r($object, true) . "\n", FILE_APPEND ); } } }