NIST Biometric Evaluation Framework
Software components for biometric technology evaluations
be_io_syslogsheet.h
Go to the documentation of this file.
1
11#ifndef __BE_IO_SYSLOGSHEET_H__
12#define __BE_IO_SYSLOGSHEET_H__
13#endif
14
15#include <be_io_logsheet.h>
16
17namespace BiometricEvaluation
18{
19 namespace IO
20 {
46 {
47 public:
74 const std::string &url,
75 const std::string &description,
76 const std::string &appname,
77 bool sequenced,
78 bool utc);
79
109 const std::string &url,
110 const std::string &description,
111 const std::string &appname,
112 const std::string &hostname,
113 bool sequenced,
114 bool utc);
115
118
119 /* Declare implementations of parent interface */
120 void
121 write(const std::string &entry);
122 void
123 writeComment(const std::string &entry);
124 void
125 writeDebug(const std::string &entry);
126 void
128
129 protected:
132
135
137 void setup(
138 const std::string &url,
139 const std::string &description);
140
143 const std::string &priority,
144 const char delimiter,
145 const std::string &prefix,
146 const std::string &message);
147
148 std::string _hostname;
149 std::string _appname;
150 std::string _procid;
151
154
157
160
162 bool _utc;
163 };
164 }
165}
166
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.
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...