11#ifndef __BE_IO_SYSLOGSHEET_H__
12#define __BE_IO_SYSLOGSHEET_H__
74 const std::string &url,
75 const std::string &description,
76 const std::string &appname,
109 const std::string &url,
110 const std::string &description,
111 const std::string &appname,
112 const std::string &hostname,
138 const std::string &url,
139 const std::string &description);
143 const std::string &priority,
144 const char delimiter,
145 const std::string &prefix,
146 const std::string &message);
A class to represent a logging mechanism.
A class to represent a single logging mechanism to a logging service on the network.
void writeComment(const std::string &entry)
Write a string as a comment to the backing store.
SysLogsheet & operator=(const SysLogsheet &)
Prevent copying of SysLogsheet objects.
void writeDebug(const std::string &entry)
Write a string as a debug entry to the backing store.
bool _utc
Whether time stamps are in UTC.
SysLogsheet(const std::string &url, const std::string &description, const std::string &appname, bool sequenced, bool utc)
Create a new log sheet.
~SysLogsheet()
Destructor.
void write(const std::string &entry)
Write a string as an entry to the backing store.
bool _operational
Whether the sheet is operational.
SysLogsheet(const SysLogsheet &)
Prevent copying of SysLogsheet objects.
void sync()
Synchronize any buffered data to the underlying backing store.
int _sockFD
Socket file descriptor for the logging system.
void setup(const std::string &url, const std::string &description)
Helper function to build connections.
SysLogsheet(const std::string &url, const std::string &description, const std::string &appname, const std::string &hostname, bool sequenced, bool utc)
Create a new log sheet.
bool _sequenced
Whether to include entry sequence numbers.
void writeToLogger(const std::string &priority, const char delimiter, const std::string &prefix, const std::string &message)
Helper function to write to the logger.
This software was developed at the National Institute of Standards and Technology (NIST) by employees...