Thread portable class


Gate portable class


Timer class


Pool class


Terimber 2.0


About C++


Downloads Products & Services Support Clients Open Source About



Home / Open source / Terimber 2.0

terimber_log_helper Class Reference

class encapsulates the external log provider can be used as a parent log for aggregated other classes supported logging More...

#include <log.h>

Inheritance diagram for terimber_log_helper:

terimber_log dbserver memindex memlookup msg_communicator msg_listener terimber_aiofile terimber_aiogate terimber_aiomsg terimber_aiosock terimber_memtable terimber_threadpool

List of all members.

Public Member Functions

 terimber_log_helper ()
 constructor
terimber_loglog_on (terimber_log *log)
 turns on, off, or changes the desirable log output
bool v_is_logging (size_t module, const char *file, size_t line, terimber_log_severity severity) const
 checks logging severity
void v_do_logging (size_t module, const char *file, size_t line, terimber_log_severity severity, const char *msg) const
 does the actual logging

Private Attributes

terimber_log *volatile _log
 external log pointer


Detailed Description

class encapsulates the external log provider can be used as a parent log for aggregated other classes supported logging

Definition at line 79 of file log.h.


Constructor & Destructor Documentation

terimber_log_helper::terimber_log_helper (  )  [inline]

constructor

Definition at line 84 of file log.h.


Member Function Documentation

terimber_log* terimber_log_helper::log_on ( terimber_log log  )  [inline]

turns on, off, or changes the desirable log output

Parameters:
log  pointer to external log

Definition at line 91 of file log.h.

References _log.

Referenced by memtable::add_index(), memindex::add_lookup(), aiomsg::init(), aiosock::off(), aiogate::off(), aiofile::off(), aiosock::on(), aiogate::on(), aiofile::on(), aiomsg::uninit(), msg_communicator::v_off(), and msg_communicator::v_on().

bool terimber_log_helper::v_is_logging ( size_t  module,
const char *  file,
size_t  line,
terimber_log_severity  severity 
) const [inline, virtual]

checks logging severity

Parameters:
file  __FILE__
line  __LINE__
severity  severity

Implements terimber_log.

Definition at line 102 of file log.h.

References _log, and terimber_log::v_is_logging().

void terimber_log_helper::v_do_logging ( size_t  module,
const char *  file,
size_t  line,
terimber_log_severity  severity,
const char *  msg 
) const [inline, virtual]

does the actual logging

Parameters:
file  __FILE__
line  __LINE__
severity  severity
msg  message text

Implements terimber_log.

Definition at line 115 of file log.h.

References _log, and terimber_log::v_do_logging().


Member Data Documentation

external log pointer

Definition at line 131 of file log.h.

Referenced by log_on(), v_do_logging(), and v_is_logging().


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


© Copyright Terimber 2003-.