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::UDPLogger Class Reference

Class for logging to a logging server. More...

#include <vici/log.h>

Inheritance diagram for VICI::cfi::UDPLogger:
VICI::cfi::FormattingLogger VICI::cfi::logger

Public Member Functions

 UDPLogger (csr hostname, int port)
 
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

UDPClientSocket socket
 the udp socket connected to the logging server
 
- Protected Attributes inherited from VICI::cfi::logger
Semaphore sem4
 Mutual exclusion lock.
 

Additional Inherited Members

- Protected Member Functions inherited from VICI::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 VICI::cfi::logger
 logger ()
 Constructor.
 

Detailed Description

Class for logging to a logging server.

Constructor & Destructor Documentation

UDPLogger::UDPLogger ( csr  hostname,
int  port 
)
Parameters
hostnamethe identity of the log server in the configuration file
portthe port to send to

Member Function Documentation

int UDPLogger::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 UDPLogger::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: