Logo Search packages:      
Sourcecode: virtualbox-ose version File versions  Download package

RTDECL ( PRTLOGGER   ) 

Sets the default release logger instance.

Returns:
The old default instance.
Parameters:
pLogger The new default release logger instance.
Gets the default release logger instance.

Returns:
Pointer to default release logger instance.

NULL if no default release logger instance available.

Gets the default logger instance, creating it if necessary.

Returns:
Pointer to default logger instance.

NULL if no default logger instance available.

Gets the default logger instance.

Returns:
Pointer to default logger instance.

NULL if no default logger instance available.

Sets the default logger instance.

Returns:
The old default instance.
Parameters:
pLogger The new default logger instance.
Creates the default logger instance for a iprt users.

Any user of the logging features will need to implement this or use the generic dummy.

Returns:
Pointer to the logger instance.
Sets the default logger instance.

Returns:
iprt status code.
Parameters:
pLogger The new default logger instance.
Sets the default logger instance.

Returns:
iprt status code.
Parameters:
pLogger The new default release logger instance.
Gets the default logger instance, creating it if necessary.

Returns:
Pointer to default logger instance.

NULL if no default logger instance available.

Gets the default logger instance.

Returns:
Pointer to default logger instance.

NULL if no default logger instance available.

Sets the default logger instance.

Returns:
iprt status code.
Parameters:
pLogger The new default logger instance.
Gets the default release logger instance.

Returns:
Pointer to default release logger instance.

NULL if no default release logger instance available.

Sets the default logger instance.

Returns:
iprt status code.
Parameters:
pLogger The new default release logger instance.
Creates the default logger instance for a VBox process.

Returns:
Pointer to the logger instance.

Definition at line 1807 of file log.cpp.

References RTLOGGER::fDestFlags, for(), g_apszGroups, RTTIME::i32Year, NULL, RT_ELEMENTS, RT_SUCCESS, RTLOGDEST_DEBUGGER, RTLOGDEST_FILE, RTLOGDEST_STDOUT, RTLOGDEST_USER, RTPATH_MAX, strlen(), RTTIME::u32Nanosecond, RTTIME::u8Hour, RTTIME::u8Minute, RTTIME::u8Month, RTTIME::u8MonthDay, and RTTIME::u8Second.

{
#ifdef IN_RC
    return &g_Logger;
#else
# ifdef IN_RING0
    /*
     * Check per thread loggers first.
     */
    if (g_cPerThreadLoggers)
    {
        const RTNATIVETHREAD Self = RTThreadNativeSelf();
        int32_t i = RT_ELEMENTS(g_aPerThreadLoggers);
        while (i-- > 0)
            if (g_aPerThreadLoggers[i].NativeThread == Self)
                return g_aPerThreadLoggers[i].pLogger;
    }
# endif /* IN_RING0 */

    return g_pLogger;
#endif
}


Generated by  Doxygen 1.6.0   Back to index