<?php
/**
 * interface for log.class.php
 *
 * @link:    http://src.qfox.ru/
 * @date:    15 aug 2007
 */

/**
 * Alias for L::debug( string $p ) function
 *
 * @see L::debug
 * @see L::d
 */
function d$string ) { if( defined'FB_LOG_SHORT' ) ) L::debug$string ); };


/**
 * Alias for L::notice( string $p ) function
 *
 * @see L::notice
 * @see L::n
 */
function n$string ) { if( defined'FB_LOG_SHORT' ) ) L::notice$string ); };

/**
 * Alias for L::warning( string $p ) function
 *
 * @see L::warning
 * @see L::w
 */
function w$string ) { if( defined'FB_LOG_SHORT' ) ) L::warning$string ); };

/**
 * Alias for L::error( string $p ) function
 *
 * @see L::error
 * @see L::e
 */

function e$string ) { if( defined'FB_LOG_SHORT' ) ) L::error$string ); };


/**
 * Alias for L::alert( string $p ) function
 *
 * @see L::alert
 * @see L::a
 */
function a$string ) { if( defined'FB_LOG_SHORT' ) ) L::alert$string ); };


/**
 * timestamp for the error entry
 *
 */
function __log_getTime( )
{
    list( 
$_usec$_sec ) = explode" "microtime( ) );
    return 
date"Y-m-d H:i:s."$_sec ) . substr$_usec2);
}


?>