Base class for destinations of a logging event. More...
#include <mbl_log.h>
Public Member Functions | |
virtual | ~mbl_log_output_base () |
virtual void | start_with_manual_termination (int level, const char *srcfile, int srcline)=0 |
Start a new log entry, with id info. | |
virtual void | start_with_flush_termination (int level, const char *srcfile, int srcline)=0 |
Start a new log entry, with id info. | |
virtual void | append (const char *contents, vcl_streamsize n_chars)=0 |
Add contents to the existing log entry. | |
virtual void | terminate_manual ()=0 |
Finish the log entry, sent from a stream flush. | |
virtual void | terminate_flush ()=0 |
Finish the log entry, sent from explicit function call, e.g. by MBL_LOG. | |
virtual const char * | id ()=0 |
Which logger id are we using. |
virtual mbl_log_output_base::~mbl_log_output_base | ( | ) | [inline, virtual] |
virtual void mbl_log_output_base::append | ( | const char * | contents, |
vcl_streamsize | n_chars | ||
) | [pure virtual] |
Add contents to the existing log entry.
Implemented in mbl_log_output_file, and mbl_log_output_stream.
virtual const char* mbl_log_output_base::id | ( | ) | [pure virtual] |
Which logger id are we using.
char * for efficiency, since logger name is in executable's static_data.
Implemented in mbl_log_output_file, and mbl_log_output_stream.
virtual void mbl_log_output_base::start_with_flush_termination | ( | int | level, |
const char * | srcfile, | ||
int | srcline | ||
) | [pure virtual] |
Start a new log entry, with id info.
Future calls to terminate_flush will be honoured.
Implemented in mbl_log_output_file, and mbl_log_output_stream.
virtual void mbl_log_output_base::start_with_manual_termination | ( | int | level, |
const char * | srcfile, | ||
int | srcline | ||
) | [pure virtual] |
Start a new log entry, with id info.
Future calls to terminate_flush will be ignored.
Implemented in mbl_log_output_file, and mbl_log_output_stream.
virtual void mbl_log_output_base::terminate_flush | ( | ) | [pure virtual] |
Finish the log entry, sent from explicit function call, e.g. by MBL_LOG.
Implemented in mbl_log_output_file, and mbl_log_output_stream.
virtual void mbl_log_output_base::terminate_manual | ( | ) | [pure virtual] |
Finish the log entry, sent from a stream flush.
Implemented in mbl_log_output_file, and mbl_log_output_stream.