diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-04 11:36:04 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-04 11:36:04 +0000 |
commit | 040eee1aa49b49df4698d83a05af57c220127fd1 (patch) | |
tree | f635435954e6ccde5eee9893889e24f30ca68346 /src/bin/lfc/lfc_messages.cc | |
parent | Initial commit. (diff) | |
download | isc-kea-upstream.tar.xz isc-kea-upstream.zip |
Adding upstream version 2.2.0.upstream/2.2.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/bin/lfc/lfc_messages.cc')
-rw-r--r-- | src/bin/lfc/lfc_messages.cc | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/src/bin/lfc/lfc_messages.cc b/src/bin/lfc/lfc_messages.cc new file mode 100644 index 0000000..0fe0396 --- /dev/null +++ b/src/bin/lfc/lfc_messages.cc @@ -0,0 +1,45 @@ +// File created from ../../../src/bin/lfc/lfc_messages.mes + +#include <cstddef> +#include <log/message_types.h> +#include <log/message_initializer.h> + +namespace isc { +namespace lfc { + +extern const isc::log::MessageID LFC_FAIL_PID_CREATE = "LFC_FAIL_PID_CREATE"; +extern const isc::log::MessageID LFC_FAIL_PID_DEL = "LFC_FAIL_PID_DEL"; +extern const isc::log::MessageID LFC_FAIL_PROCESS = "LFC_FAIL_PROCESS"; +extern const isc::log::MessageID LFC_FAIL_ROTATE = "LFC_FAIL_ROTATE"; +extern const isc::log::MessageID LFC_PROCESSING = "LFC_PROCESSING"; +extern const isc::log::MessageID LFC_READ_STATS = "LFC_READ_STATS"; +extern const isc::log::MessageID LFC_ROTATING = "LFC_ROTATING"; +extern const isc::log::MessageID LFC_RUNNING = "LFC_RUNNING"; +extern const isc::log::MessageID LFC_START = "LFC_START"; +extern const isc::log::MessageID LFC_TERMINATE = "LFC_TERMINATE"; +extern const isc::log::MessageID LFC_WRITE_STATS = "LFC_WRITE_STATS"; + +} // namespace lfc +} // namespace isc + +namespace { + +const char* values[] = { + "LFC_FAIL_PID_CREATE", ": %1", + "LFC_FAIL_PID_DEL", ": %1", + "LFC_FAIL_PROCESS", ": %1", + "LFC_FAIL_ROTATE", ": %1", + "LFC_PROCESSING", "Previous file: %1, copy file: %2", + "LFC_READ_STATS", "Leases: %1, attempts: %2, errors: %3.", + "LFC_ROTATING", "LFC rotating files", + "LFC_RUNNING", "LFC instance already running", + "LFC_START", "Starting lease file cleanup", + "LFC_TERMINATE", "LFC finished processing", + "LFC_WRITE_STATS", "Leases: %1, attempts: %2, errors: %3.", + NULL +}; + +const isc::log::MessageInitializer initializer(values); + +} // Anonymous namespace + |