Refactor severity and facility parsing code
This commit is contained in:
@@ -41,12 +41,12 @@ public:
|
||||
}
|
||||
}
|
||||
private:
|
||||
std::vector<std::string> _messages = {
|
||||
std::vector<std::string> _messages{
|
||||
"2015-09-02 13:33:11 Local4.Critical 192.168.0.1 Kiwi_Syslog_Server %ASA-2-106007: Deny inbound UDP from 1.2.3.4/22084 to 4.3.2.1/53 due to DNS Query",
|
||||
"2015-09-02 13:33:11 Local4.Critical 192.168.0.1 Kiwi_Syslog_Server %ASA-2-106007: Deny inbound UDP from 1.2.3.4/22084 to 4.3.2.1/53 due to DNS Query",
|
||||
"2015-09-02 13:33:11 Local4.Critical 192.168.0.1 Kiwi_Syslog_Server %ASA-2-106007: Deny inbound UDP from 1.2.3.4/22084 to 4.3.2.1/53 due to DNS Query"
|
||||
};
|
||||
size_t _pos;
|
||||
size_t _pos{};
|
||||
};
|
||||
|
||||
class MockWriter : public Writer {
|
||||
|
||||
Reference in New Issue
Block a user