Kea 2.7.6
log_messages.cc
Go to the documentation of this file.
1// File created from ../../../src/lib/log/log_messages.mes
2
3#include <cstddef>
4#include <log/message_types.h>
6
7namespace isc {
8namespace log {
9
10extern const isc::log::MessageID LOG_BAD_DESTINATION = "LOG_BAD_DESTINATION";
11extern const isc::log::MessageID LOG_BAD_SEVERITY = "LOG_BAD_SEVERITY";
12extern const isc::log::MessageID LOG_BAD_STREAM = "LOG_BAD_STREAM";
13extern const isc::log::MessageID LOG_DUPLICATE_MESSAGE_ID = "LOG_DUPLICATE_MESSAGE_ID";
14extern const isc::log::MessageID LOG_DUPLICATE_NAMESPACE = "LOG_DUPLICATE_NAMESPACE";
15extern const isc::log::MessageID LOG_INPUT_OPEN_FAIL = "LOG_INPUT_OPEN_FAIL";
16extern const isc::log::MessageID LOG_INVALID_MESSAGE_ID = "LOG_INVALID_MESSAGE_ID";
17extern const isc::log::MessageID LOG_NAMESPACE_EXTRA_ARGS = "LOG_NAMESPACE_EXTRA_ARGS";
18extern const isc::log::MessageID LOG_NAMESPACE_INVALID_ARG = "LOG_NAMESPACE_INVALID_ARG";
19extern const isc::log::MessageID LOG_NAMESPACE_NO_ARGS = "LOG_NAMESPACE_NO_ARGS";
20extern const isc::log::MessageID LOG_NO_MESSAGE_ID = "LOG_NO_MESSAGE_ID";
21extern const isc::log::MessageID LOG_NO_MESSAGE_TEXT = "LOG_NO_MESSAGE_TEXT";
22extern const isc::log::MessageID LOG_NO_SUCH_MESSAGE = "LOG_NO_SUCH_MESSAGE";
23extern const isc::log::MessageID LOG_OPEN_OUTPUT_FAIL = "LOG_OPEN_OUTPUT_FAIL";
24extern const isc::log::MessageID LOG_PREFIX_EXTRA_ARGS = "LOG_PREFIX_EXTRA_ARGS";
25extern const isc::log::MessageID LOG_PREFIX_INVALID_ARG = "LOG_PREFIX_INVALID_ARG";
26extern const isc::log::MessageID LOG_READING_LOCAL_FILE = "LOG_READING_LOCAL_FILE";
27extern const isc::log::MessageID LOG_READ_ERROR = "LOG_READ_ERROR";
28extern const isc::log::MessageID LOG_UNRECOGNIZED_DIRECTIVE = "LOG_UNRECOGNIZED_DIRECTIVE";
29extern const isc::log::MessageID LOG_WRITE_ERROR = "LOG_WRITE_ERROR";
30
31} // namespace log
32} // namespace isc
33
34namespace {
35
36const char* values[] = {
37 "LOG_BAD_DESTINATION", "unrecognized log destination: %1",
38 "LOG_BAD_SEVERITY", "unrecognized log severity: %1",
39 "LOG_BAD_STREAM", "bad log console output stream: %1",
40 "LOG_DUPLICATE_MESSAGE_ID", "duplicate message ID (%1) in compiled code",
41 "LOG_DUPLICATE_NAMESPACE", "line %1: duplicate $NAMESPACE directive found",
42 "LOG_INPUT_OPEN_FAIL", "unable to open message file %1 for input: %2",
43 "LOG_INVALID_MESSAGE_ID", "line %1: invalid message identification '%2'",
44 "LOG_NAMESPACE_EXTRA_ARGS", "line %1: $NAMESPACE directive has too many arguments",
45 "LOG_NAMESPACE_INVALID_ARG", "line %1: $NAMESPACE directive has an invalid argument ('%2')",
46 "LOG_NAMESPACE_NO_ARGS", "line %1: no arguments were given to the $NAMESPACE directive",
47 "LOG_NO_MESSAGE_ID", "line %1: message definition line found without a message ID",
48 "LOG_NO_MESSAGE_TEXT", "line %1: line found containing a message ID ('%2') and no text",
49 "LOG_NO_SUCH_MESSAGE", "could not replace message text for '%1': no such message",
50 "LOG_OPEN_OUTPUT_FAIL", "unable to open %1 for output: %2",
51 "LOG_PREFIX_EXTRA_ARGS", "line %1: $PREFIX directive has too many arguments",
52 "LOG_PREFIX_INVALID_ARG", "line %1: $PREFIX directive has an invalid argument ('%2')",
53 "LOG_READING_LOCAL_FILE", "reading local message file %1",
54 "LOG_READ_ERROR", "error reading from message file %1: %2",
55 "LOG_UNRECOGNIZED_DIRECTIVE", "line %1: unrecognized directive '%2'",
56 "LOG_WRITE_ERROR", "error writing to %1: %2",
57 NULL
58};
59
60const isc::log::MessageInitializer initializer(values);
61
62} // Anonymous namespace
63
Initialize Message Dictionary.
const isc::log::MessageID LOG_UNRECOGNIZED_DIRECTIVE
const isc::log::MessageID LOG_OPEN_OUTPUT_FAIL
const isc::log::MessageID LOG_NAMESPACE_INVALID_ARG
const isc::log::MessageID LOG_NO_MESSAGE_TEXT
const isc::log::MessageID LOG_BAD_SEVERITY
const isc::log::MessageID LOG_READ_ERROR
const isc::log::MessageID LOG_NO_SUCH_MESSAGE
const isc::log::MessageID LOG_NO_MESSAGE_ID
const isc::log::MessageID LOG_NAMESPACE_EXTRA_ARGS
const isc::log::MessageID LOG_BAD_DESTINATION
const isc::log::MessageID LOG_DUPLICATE_NAMESPACE
const isc::log::MessageID LOG_DUPLICATE_MESSAGE_ID
const isc::log::MessageID LOG_PREFIX_EXTRA_ARGS
const isc::log::MessageID LOG_INPUT_OPEN_FAIL
const isc::log::MessageID LOG_BAD_STREAM
const isc::log::MessageID LOG_READING_LOCAL_FILE
const isc::log::MessageID LOG_INVALID_MESSAGE_ID
const isc::log::MessageID LOG_NAMESPACE_NO_ARGS
const isc::log::MessageID LOG_PREFIX_INVALID_ARG
const char * MessageID
const isc::log::MessageID LOG_WRITE_ERROR
Defines the logger used by the top-level component of kea-lfc.