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

Class for logging tracing output. More...

#include <vici/log.h>

Inheritance diagram for VICI::cfi::TraceLogger:
VICI::cfi::logger

Public Member Functions

 TraceLogger (const Path &fname)
 
int log (Severity, csr line)
 log to the unnamed log More...
 
int log (csr logName, Severity, csr line)
 log to the named log More...
 
- Public Member Functions inherited from VICI::cfi::logger
virtual ~logger ()
 Destructor.
 

Protected Attributes

std::ofstream f
 The logging stream.
 
- Protected Attributes inherited from VICI::cfi::logger
Semaphore sem4
 Mutual exclusion lock.
 

Additional Inherited Members

- Protected Member Functions inherited from VICI::cfi::logger
 logger ()
 Constructor.
 

Detailed Description

Class for logging tracing output.

Constructor & Destructor Documentation

TraceLogger::TraceLogger ( const Path fname)
Parameters
fnamethe name of the log file.

Member Function Documentation

int TraceLogger::log ( Severity  sev,
csr  line 
)
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.

Implements VICI::cfi::logger.

int TraceLogger::log ( csr  logName,
Severity  sev,
csr  line 
)
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.

Implements VICI::cfi::logger.


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