bt_log.h File Reference

Generic multi-level logging facility. More...

#include "bt_utilities_internal.h"
#include "bt_types.h"
#include <stdio.h>
#include <stdarg.h>

Include dependency graph for bt_log.h:

This graph shows which files directly or indirectly include this file:


Defines

#define BT_LOG(ch, f)   BT_Log::LogMsg(ch, f)
 Logs a message.
#define BT_LOG1(ch, f, a)   BT_Log::LogMsg(ch, f, a)
 Logs a message.
#define BT_LOG2(ch, f, a, b)   BT_Log::LogMsg(ch, f, a, b)
 Logs a message.
#define BT_LOG3(ch, f, a, b, c)   BT_Log::LogMsg(ch, f, a, b, c)
 Logs a message.
#define BT_LOG4(ch, f, a, b, c, d)   BT_Log::LogMsg(ch, f, a, b, c, d)
 Logs a message.
#define BT_LOG5(ch, f, a, b, c, d, e)   BT_Log::LogMsg(ch, f, a, b, c, d, e)
 Logs a message.
#define BT_LOG_INIT_STANDARD()   BT_Log::InitStandardChannels()
 Initialize the logging system.
#define BT_LOG_MUTE(c)   BT_Log::MuteChannel(c)
 Disables logging.
#define BT_LOG_MUTEALL()   BT_Log::MuteAll()
 Disables logging on all channels.
#define BT_LOG_PRINTF_ATTRIBUTE
#define BT_LOG_UNMUTE(c)   BT_Log::UnmuteChannel(c)
 Enables logging on the given channel.
#define BT_LOG_UNMUTEALL()   BT_Log::UnmuteAll()
 Enables logging on all channels.

Typedefs

typedef void(* BT_Log_callback_function )(void *callback_data, int channel, char const *string_to_log)
 Message logging call back function.

Detailed Description


Define Documentation

#define BT_LOG ( ch,
 )     BT_Log::LogMsg(ch, f)

Logs a message on the given channel. The format template (argument 2) accepts no parameters.

#define BT_LOG1 ( ch,
f,
 )     BT_Log::LogMsg(ch, f, a)

Logs a message on the given channel. The format template (argument 2) accepts 1 parameter.

#define BT_LOG2 ( ch,
f,
a,
 )     BT_Log::LogMsg(ch, f, a, b)

Logs a message on the given channel. The format template (argument 2) accepts 2 parameters.

#define BT_LOG3 ( ch,
f,
a,
b,
 )     BT_Log::LogMsg(ch, f, a, b, c)

Logs a message on the given channel. The format template (argument 2) accepts 3 parameters.

#define BT_LOG4 ( ch,
f,
a,
b,
c,
 )     BT_Log::LogMsg(ch, f, a, b, c, d)

Logs a message on the given channel. The format template (argument 2) accepts 4 parameters.

#define BT_LOG5 ( ch,
f,
a,
b,
c,
d,
 )     BT_Log::LogMsg(ch, f, a, b, c, d, e)

Logs a message on the given channel. The format template (argument 2) accepts 5 parameters.

 
#define BT_LOG_INIT_STANDARD (  )     BT_Log::InitStandardChannels()

Initialize the logging system.

#define BT_LOG_MUTE (  )     BT_Log::MuteChannel(c)

Disables logging on the given channel.

 
#define BT_LOG_MUTEALL (  )     BT_Log::MuteAll()

Disables logging on all channels.

#define BT_LOG_PRINTF_ATTRIBUTE

Macro to enable/disable GNU C attribute for checking arguments to printf.

#define BT_LOG_UNMUTE (  )     BT_Log::UnmuteChannel(c)

Enables logging on the given channel.

 
#define BT_LOG_UNMUTEALL (  )     BT_Log::UnmuteAll()

Enables logging on all channels.


Typedef Documentation

typedef void(* BT_Log_callback_function)(void *callback_data, int channel, char const *string_to_log)

User can supply their own call back function of this prototype to log RLP activities.

See also:
BT_RLP_Environment::SetLogCallbackFunction


Copyright © 2004-2008 Basis Technology Corporation. All Rights Reserved.