Kea: log_messages.cc Source File

| Kea 3.0.0

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>
5#include <log/message_initializer.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
isc::log::MessageInitializer
Initialize Message Dictionary.
Definition message_initializer.h:72
message_initializer.h
message_types.h
isc::log
Definition buffer_appender_impl.cc:17
isc::log::LOG_UNRECOGNIZED_DIRECTIVE
const isc::log::MessageID LOG_UNRECOGNIZED_DIRECTIVE
Definition log_messages.h:29
isc::log::LOG_OPEN_OUTPUT_FAIL
const isc::log::MessageID LOG_OPEN_OUTPUT_FAIL
Definition log_messages.h:24
isc::log::LOG_NAMESPACE_INVALID_ARG
const isc::log::MessageID LOG_NAMESPACE_INVALID_ARG
Definition log_messages.h:19
isc::log::LOG_NO_MESSAGE_TEXT
const isc::log::MessageID LOG_NO_MESSAGE_TEXT
Definition log_messages.h:22
isc::log::LOG_BAD_SEVERITY
const isc::log::MessageID LOG_BAD_SEVERITY
Definition log_messages.h:12
isc::log::LOG_READ_ERROR
const isc::log::MessageID LOG_READ_ERROR
Definition log_messages.h:28
isc::log::LOG_NO_SUCH_MESSAGE
const isc::log::MessageID LOG_NO_SUCH_MESSAGE
Definition log_messages.h:23
isc::log::LOG_NO_MESSAGE_ID
const isc::log::MessageID LOG_NO_MESSAGE_ID
Definition log_messages.h:21
isc::log::LOG_NAMESPACE_EXTRA_ARGS
const isc::log::MessageID LOG_NAMESPACE_EXTRA_ARGS
Definition log_messages.h:18
isc::log::LOG_BAD_DESTINATION
const isc::log::MessageID LOG_BAD_DESTINATION
Definition log_messages.h:11
isc::log::LOG_DUPLICATE_NAMESPACE
const isc::log::MessageID LOG_DUPLICATE_NAMESPACE
Definition log_messages.h:15
isc::log::LOG_DUPLICATE_MESSAGE_ID
const isc::log::MessageID LOG_DUPLICATE_MESSAGE_ID
Definition log_messages.h:14
isc::log::LOG_PREFIX_EXTRA_ARGS
const isc::log::MessageID LOG_PREFIX_EXTRA_ARGS
Definition log_messages.h:25
isc::log::LOG_INPUT_OPEN_FAIL
const isc::log::MessageID LOG_INPUT_OPEN_FAIL
Definition log_messages.h:16
isc::log::LOG_BAD_STREAM
const isc::log::MessageID LOG_BAD_STREAM
Definition log_messages.h:13
isc::log::LOG_READING_LOCAL_FILE
const isc::log::MessageID LOG_READING_LOCAL_FILE
Definition log_messages.h:27
isc::log::LOG_INVALID_MESSAGE_ID
const isc::log::MessageID LOG_INVALID_MESSAGE_ID
Definition log_messages.h:17
isc::log::LOG_NAMESPACE_NO_ARGS
const isc::log::MessageID LOG_NAMESPACE_NO_ARGS
Definition log_messages.h:20
isc::log::LOG_PREFIX_INVALID_ARG
const isc::log::MessageID LOG_PREFIX_INVALID_ARG
Definition log_messages.h:26
isc::log::MessageID
const char * MessageID
Definition message_types.h:15
isc::log::LOG_WRITE_ERROR
const isc::log::MessageID LOG_WRITE_ERROR
Definition log_messages.h:30
isc
Defines the logger used by the top-level component of kea-lfc.
Definition agent_parser.cc:148