Public Member Functions
mbl_log_output_base Class Reference

Base class for destinations of a logging event. More...

#include <mbl_log.h>

Inheritance diagram for mbl_log_output_base:
Inheritance graph
[legend]

List of all members.

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.

Detailed Description

Base class for destinations of a logging event.

Definition at line 102 of file mbl_log.h.


Constructor & Destructor Documentation

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

Definition at line 105 of file mbl_log.h.


Member Function Documentation

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.


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