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 Class Reference

abstract class for logging information More...

#include <log.h>

Inheritance diagram for terimber_log:

daemon terimber_log_helper 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

virtual ~terimber_log ()
 destructor
virtual bool v_is_logging (size_t module, const char *file, size_t line, terimber_log_severity severity) const =0
 checks if the severity level should be logging
virtual void v_do_logging (size_t module, const char *file, size_t line, terimber_log_severity severity, const char *msg) const =0
 does the logging
void format_logging (size_t module, const char *file, size_t line, terimber_log_severity severity, const char *format,...) const
 helps in logging formatted message with parameters


Detailed Description

abstract class for logging information

Definition at line 43 of file log.h.


Constructor & Destructor Documentation

virtual terimber_log::~terimber_log (  )  [inline, virtual]

destructor

Definition at line 47 of file log.h.


Member Function Documentation

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

checks if the severity level should be logging

Parameters:
file  __FILE__
line  __LINE__
severity  severity

Implemented in terimber_log_helper, and daemon.

Referenced by format_logging(), and terimber_log_helper::v_is_logging().

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

does the logging

Parameters:
file  __FILE__
line  __LINE__
severity  severity
msg  message text

Implemented in terimber_log_helper, and daemon.

Referenced by format_logging(), and terimber_log_helper::v_do_logging().

void terimber_log::format_logging ( size_t  module,
const char *  file,
size_t  line,
terimber_log_severity  severity,
const char *  format,
  ... 
) const

helps in logging formatted message with parameters

Parameters:
file  __FILE__
line  __LINE__
severity  severity
format  format

Definition at line 32 of file log.cpp.

References v_do_logging(), and v_is_logging().

Referenced by aiosock::_activate_block(), aiofile::_activate_block(), aiofile::_assign_file(), aiosock::_assign_socket(), aiofile::_cancel_file(), aiofile::_close_file(), aiosock::_close_socket(), aiosock::_process_block(), aiofile::_process_block(), aiosock::bind(), aiogate::bind(), threadpool::borrow_from_range(), threadpool::borrow_thread(), aiosock::close(), aiogate::close(), aiofile::close(), aiosock::complete_block(), aiofile::complete_block(), dbserver_impl::connect(), aiosock::connect(), aiogate::connect(), aiosock::create(), aiogate::deaf(), threadpool::doxray(), msg_communicator::doxray(), aiosock::doxray(), aiogate::doxray(), aiofile::doxray(), aiogate::final_close(), aiosock::getpeeraddr(), aiosock::getsockaddr(), aiosock::listen(), aiogate::listen(), msg_communicator::log_msg(), threadpool::off(), aiosock::off(), aiogate::off(), aiofile::off(), threadpool::on(), aiosock::on(), aiogate::on(), aiofile::on(), aiofile::open(), aiosock::process_timeouted_blocks(), aiofile::process_timeouted_blocks(), aiogate::recv(), threadpool::revoke_client(), aiogate::send_bulk(), msg_rpc_connection::send_msg(), ServerPostBlock(), aiogate::set_recv_timeout(), aiogate::set_send_timeout(), msg_communicator::shutdown_connection(), aiogate::unlock_pin(), threadpool::v_do_job(), msg_sock_connection::v_do_job(), aiosock::v_do_job(), aiofile::v_do_job(), daemon::v_find_cfg_file(), threadpool::v_has_job(), msg_communicator::v_off(), msg_communicator::v_on(), aiogate::v_on_accept(), msg_sock_connection::v_on_connect(), aiogate::v_on_connect(), msg_sock_connection::v_on_error(), aiogate::v_on_error(), msg_sock_connection::v_on_receive(), aiogate::v_on_receive(), msg_sock_connection::v_on_send(), and aiogate::v_on_send().


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


© Copyright Terimber 2003-.