Branch data Line data Source code
1 : : // File created from ../../../src/lib/server_common/server_common_messages.mes on Mon May 14 10:35:22 2012
2 : :
3 : : #include <cstddef>
4 : : #include <log/message_types.h>
5 : : #include <log/message_initializer.h>
6 : :
7 : : namespace isc {
8 : : namespace server_common {
9 : :
10 : : extern const isc::log::MessageID SOCKETREQUESTOR_CREATED = "SOCKETREQUESTOR_CREATED";
11 : : extern const isc::log::MessageID SOCKETREQUESTOR_DESTROYED = "SOCKETREQUESTOR_DESTROYED";
12 : : extern const isc::log::MessageID SOCKETREQUESTOR_GETSOCKET = "SOCKETREQUESTOR_GETSOCKET";
13 : : extern const isc::log::MessageID SOCKETREQUESTOR_RELEASESOCKET = "SOCKETREQUESTOR_RELEASESOCKET";
14 : : extern const isc::log::MessageID SRVCOMM_ADDRESSES_NOT_LIST = "SRVCOMM_ADDRESSES_NOT_LIST";
15 : : extern const isc::log::MessageID SRVCOMM_ADDRESS_FAIL = "SRVCOMM_ADDRESS_FAIL";
16 : : extern const isc::log::MessageID SRVCOMM_ADDRESS_MISSING = "SRVCOMM_ADDRESS_MISSING";
17 : : extern const isc::log::MessageID SRVCOMM_ADDRESS_TYPE = "SRVCOMM_ADDRESS_TYPE";
18 : : extern const isc::log::MessageID SRVCOMM_ADDRESS_UNRECOVERABLE = "SRVCOMM_ADDRESS_UNRECOVERABLE";
19 : : extern const isc::log::MessageID SRVCOMM_ADDRESS_VALUE = "SRVCOMM_ADDRESS_VALUE";
20 : : extern const isc::log::MessageID SRVCOMM_EXCEPTION_ALLOC = "SRVCOMM_EXCEPTION_ALLOC";
21 : : extern const isc::log::MessageID SRVCOMM_KEYS_DEINIT = "SRVCOMM_KEYS_DEINIT";
22 : : extern const isc::log::MessageID SRVCOMM_KEYS_INIT = "SRVCOMM_KEYS_INIT";
23 : : extern const isc::log::MessageID SRVCOMM_KEYS_UPDATE = "SRVCOMM_KEYS_UPDATE";
24 : : extern const isc::log::MessageID SRVCOMM_PORT_RANGE = "SRVCOMM_PORT_RANGE";
25 : : extern const isc::log::MessageID SRVCOMM_SET_LISTEN = "SRVCOMM_SET_LISTEN";
26 : : extern const isc::log::MessageID SRVCOMM_UNKNOWN_EXCEPTION_ALLOC = "SRVCOMM_UNKNOWN_EXCEPTION_ALLOC";
27 : :
28 : : } // namespace server_common
29 : : } // namespace isc
30 : :
31 : : namespace {
32 : :
33 : : const char* values[] = {
34 : : "SOCKETREQUESTOR_CREATED", "Socket requestor created for application %1",
35 : : "SOCKETREQUESTOR_DESTROYED", "Socket requestor destoryed",
36 : : "SOCKETREQUESTOR_GETSOCKET", "Received a %1 socket for [%2]:%3, FD=%4, token=%5, path=%6",
37 : : "SOCKETREQUESTOR_RELEASESOCKET", "Released a socket of token %1",
38 : : "SRVCOMM_ADDRESSES_NOT_LIST", "the address and port specification is not a list in %1",
39 : : "SRVCOMM_ADDRESS_FAIL", "failed to listen on addresses (%1)",
40 : : "SRVCOMM_ADDRESS_MISSING", "address specification is missing \"address\" or \"port\" element in %1",
41 : : "SRVCOMM_ADDRESS_TYPE", "address specification type is invalid in %1",
42 : : "SRVCOMM_ADDRESS_UNRECOVERABLE", "failed to recover original addresses also (%1)",
43 : : "SRVCOMM_ADDRESS_VALUE", "address to set: %1#%2",
44 : : "SRVCOMM_EXCEPTION_ALLOC", "exception when allocating a socket: %1",
45 : : "SRVCOMM_KEYS_DEINIT", "deinitializing TSIG keyring",
46 : : "SRVCOMM_KEYS_INIT", "initializing TSIG keyring",
47 : : "SRVCOMM_KEYS_UPDATE", "updating TSIG keyring",
48 : : "SRVCOMM_PORT_RANGE", "port out of valid range (%1 in %2)",
49 : : "SRVCOMM_SET_LISTEN", "setting addresses to listen to",
50 : : "SRVCOMM_UNKNOWN_EXCEPTION_ALLOC", "unknown exception when allocating a socket",
51 : : NULL
52 : : };
53 : :
54 : 5 : const isc::log::MessageInitializer initializer(values);
55 : :
56 : 5 : } // Anonymous namespace
57 : :
|