DI-Guy SDK Documentation  13.5
diguyLogChannel Class Reference

#include <diguyLogChannel.h>

Public Member Functions

int print (int notify_level, const char *text)
 Print log message at the given notify level. More...
 
void set_text_color (float r, float g, float b, float a)
 Set the text color to be used for messages on this channel. More...
 
void get_text_color (float *r, float *g, float *b, float *a)
 
void set_static_prefix (const char *prefix)
 
const char * get_static_prefix ()
 
void set_prefix_function (diguyLogPrefixFunction *prefix_function, void *prefix_function_user_data)
 
diguyLogPrefixFunctionget_prefix_function ()
 
void * get_prefix_function_user_data ()
 
int file_enable (int notify_level, const char *filename, int clear_file=1)
 
int file_disable ()
 

Private Functions

The functions and variables past this point are for internal use only.

No external access to them is expected or necessary.

bdiLogm_scripted_object
 A pointer to internal data. More...
 
class bdiLog
 
bdiLogget_scripted_object ()
 
 diguyLogChannel (bdiLog *scripted_object)
 A private constructor. More...
 

Constructor & Destructor Documentation

diguyLogChannel::diguyLogChannel ( bdiLog scripted_object)
private

A private constructor.

Member Function Documentation

int diguyLogChannel::print ( int  notify_level,
const char *  text 
)

Print log message at the given notify level.

void diguyLogChannel::set_text_color ( float  r,
float  g,
float  b,
float  a 
)

Set the text color to be used for messages on this channel.

void diguyLogChannel::get_text_color ( float *  r,
float *  g,
float *  b,
float *  a 
)
void diguyLogChannel::set_static_prefix ( const char *  prefix)
const char* diguyLogChannel::get_static_prefix ( )
void diguyLogChannel::set_prefix_function ( diguyLogPrefixFunction prefix_function,
void *  prefix_function_user_data 
)
diguyLogPrefixFunction* diguyLogChannel::get_prefix_function ( )
void* diguyLogChannel::get_prefix_function_user_data ( )
int diguyLogChannel::file_enable ( int  notify_level,
const char *  filename,
int  clear_file = 1 
)
int diguyLogChannel::file_disable ( )
bdiLog* diguyLogChannel::get_scripted_object ( )
inline

Friends And Related Function Documentation

friend class bdiLog
friend

Member Data Documentation

bdiLog* diguyLogChannel::m_scripted_object
private

A pointer to internal data.


The documentation for this class was generated from the following file: