-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontrollogger.h
More file actions
37 lines (30 loc) · 885 Bytes
/
Copy pathcontrollogger.h
File metadata and controls
37 lines (30 loc) · 885 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#ifndef CTRLLOGGER_H
#define CTRLLOGGER_H
#include "baselogger.h"
/**
* @file controllogger.h
* @class ControlLogger
* @brief Logger for the control connection — writes control channel events to a log file
* @author Bandile Mnyandu
*/
class ControlLogger : public BaseLogger{
private:
/// @brief target log filename
std::string target;
public:
/**
* @brief Constructs ControlLogger and writes a startup entry to the log
* @param target the log filename to write to
*/
ControlLogger(std::string target);
/**
* @brief handles an incoming log event and writes it to the control log file
* @param log the event to log
*/
void onEvent(Log& log);
/**
* @brief destructor — writes a shutdown entry to the log
*/
~ControlLogger();
};
#endif