Kea: lfc_messages.cc Source File

| Kea 3.0.2-git

lfc_messages.cc
Go to the documentation of this file.
1// File created from src/bin/lfc/lfc_messages.mes
2
3#include <cstddef>
4#include <log/message_types.h>
5#include <log/message_initializer.h>
6
7namespace isc {
8namespace lfc {
9
10extern const isc::log::MessageID LFC_FAIL_PID_CREATE = "LFC_FAIL_PID_CREATE";
11extern const isc::log::MessageID LFC_FAIL_PID_DEL = "LFC_FAIL_PID_DEL";
12extern const isc::log::MessageID LFC_FAIL_PROCESS = "LFC_FAIL_PROCESS";
13extern const isc::log::MessageID LFC_FAIL_ROTATE = "LFC_FAIL_ROTATE";
14extern const isc::log::MessageID LFC_PROCESSING = "LFC_PROCESSING";
15extern const isc::log::MessageID LFC_READ_STATS = "LFC_READ_STATS";
16extern const isc::log::MessageID LFC_ROTATING = "LFC_ROTATING";
17extern const isc::log::MessageID LFC_RUNNING = "LFC_RUNNING";
18extern const isc::log::MessageID LFC_START = "LFC_START";
19extern const isc::log::MessageID LFC_TERMINATE = "LFC_TERMINATE";
20extern const isc::log::MessageID LFC_WRITE_STATS = "LFC_WRITE_STATS";
21
22} // namespace lfc
23} // namespace isc
24
25namespace {
26
27const char* values[] = {
28 "LFC_FAIL_PID_CREATE", ": %1",
29 "LFC_FAIL_PID_DEL", ": %1",
30 "LFC_FAIL_PROCESS", ": %1",
31 "LFC_FAIL_ROTATE", ": %1",
32 "LFC_PROCESSING", "Previous file: %1, copy file: %2",
33 "LFC_READ_STATS", "Leases: %1, attempts: %2, errors: %3.",
34 "LFC_ROTATING", "LFC rotating files",
35 "LFC_RUNNING", "LFC instance already running",
36 "LFC_START", "Starting lease file cleanup",
37 "LFC_TERMINATE", "LFC finished processing",
38 "LFC_WRITE_STATS", "Leases: %1, attempts: %2, errors: %3.",
39 NULL
40};
41
42const isc::log::MessageInitializer initializer(values);
43
44} // Anonymous namespace
45
isc::log::MessageInitializer
Initialize Message Dictionary.
Definition message_initializer.h:72
message_initializer.h
message_types.h
isc::lfc
Definition lfc_controller.cc:41
isc::lfc::LFC_FAIL_PROCESS
const isc::log::MessageID LFC_FAIL_PROCESS
Definition lfc_messages.h:13
isc::lfc::LFC_START
const isc::log::MessageID LFC_START
Definition lfc_messages.h:19
isc::lfc::LFC_TERMINATE
const isc::log::MessageID LFC_TERMINATE
Definition lfc_messages.h:20
isc::lfc::LFC_FAIL_PID_DEL
const isc::log::MessageID LFC_FAIL_PID_DEL
Definition lfc_messages.h:12
isc::lfc::LFC_FAIL_ROTATE
const isc::log::MessageID LFC_FAIL_ROTATE
Definition lfc_messages.h:14
isc::lfc::LFC_RUNNING
const isc::log::MessageID LFC_RUNNING
Definition lfc_messages.h:18
isc::lfc::LFC_WRITE_STATS
const isc::log::MessageID LFC_WRITE_STATS
Definition lfc_messages.h:21
isc::lfc::LFC_FAIL_PID_CREATE
const isc::log::MessageID LFC_FAIL_PID_CREATE
Definition lfc_messages.h:11
isc::lfc::LFC_PROCESSING
const isc::log::MessageID LFC_PROCESSING
Definition lfc_messages.h:15
isc::lfc::LFC_ROTATING
const isc::log::MessageID LFC_ROTATING
Definition lfc_messages.h:17
isc::lfc::LFC_READ_STATS
const isc::log::MessageID LFC_READ_STATS
Definition lfc_messages.h:16
isc::log::MessageID
const char * MessageID
Definition message_types.h:15
isc
Defines the logger used by the top-level component of kea-lfc.
Definition agent_parser.cc:148