SASSY  0.0
Software Architecture Support System
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Types | Public Member Functions | List of all members
SASSY::cfi::StdLogger Class Reference

Class for logging to the std output streams. More...

#include <cfi/log.h>

Inheritance diagram for SASSY::cfi::StdLogger:
SASSY::cfi::FormattingLogger SASSY::cfi::logger

Public Types

enum  Stream { COUT, CERR, CLOG }
 Enumeration of the standard streams.
 

Public Member Functions

 StdLogger (Stream cc)
 Constructor. More...
 
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 SASSY::cfi::logger
virtual ~logger ()
 Destructor.
 

Additional Inherited Members

- Protected Member Functions inherited from SASSY::cfi::FormattingLogger
std::string timeStamp ()
 generates a string containing the current time More...
 
csr hostname ()
 generates a string containing the hostname.
 
csr process ()
 generates a string containing the process id
 
csr severity (Severity)
 generates a string containing the severity level
 
int format (std::ostream &s, Severity sev, csr msg)
 output the message to the stream More...
 
- Protected Member Functions inherited from SASSY::cfi::logger
 logger ()
 Constructor.
 
- Protected Attributes inherited from SASSY::cfi::logger
Semaphore sem4
 Mutual exclusion lock.
 

Detailed Description

Class for logging to the std output streams.

Constructor & Destructor Documentation

SASSY::cfi::StdLogger::StdLogger ( Stream  cc)
inlineexplicit

Constructor.

Parameters
ccenum to specify the stream to write to

Member Function Documentation

int StdLogger::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 SASSY::cfi::logger.

int StdLogger::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 SASSY::cfi::logger.


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