VICI  0.11.815
Visual Chart Interpreter
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
VICI::cfi::logger Class Referenceabstract

An abstract base class used by the log stream to write logs. More...

#include <vici/log.h>

Inheritance diagram for VICI::cfi::logger:
VICI::cfi::FormattingLogger VICI::cfi::PlainFileLogger VICI::cfi::SystemLogger VICI::cfi::TraceLogger VICI::cfi::FileLogger VICI::cfi::StdLogger VICI::cfi::UDPLogger

Public Member Functions

virtual ~logger ()
 Destructor.
 
virtual int log (Severity sev, csr line)=0
 log to the unnamed log More...
 
virtual int log (csr logName, Severity sev, csr line)=0
 log to the named log More...
 

Protected Member Functions

 logger ()
 Constructor.
 

Protected Attributes

Semaphore sem4
 Mutual exclusion lock.
 

Detailed Description

An abstract base class used by the log stream to write logs.

This is the API that libraries must implement to be used as a logging stream.

Member Function Documentation

virtual int VICI::cfi::logger::log ( Severity  sev,
csr  line 
)
pure virtual

log to the unnamed log

Parameters
sevthe severity level for the message
linethe message to place in the log
Returns
the number of characters from the string that were written.

Implemented in VICI::cfi::SystemLogger, VICI::cfi::TraceLogger, VICI::cfi::UDPLogger, VICI::cfi::PlainFileLogger, VICI::cfi::FileLogger, and VICI::cfi::StdLogger.

virtual int VICI::cfi::logger::log ( csr  logName,
Severity  sev,
csr  line 
)
pure virtual

log to the named log

Parameters
logNamethe name of the log stream to write to
sevthe severity level for the message
linethe message to place in the log
Returns
the number of characters from the string that were written.

Implemented in VICI::cfi::SystemLogger, VICI::cfi::TraceLogger, VICI::cfi::UDPLogger, VICI::cfi::PlainFileLogger, VICI::cfi::FileLogger, and VICI::cfi::StdLogger.


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