log_messages.mes 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. # Copyright (C) 2011 Internet Systems Consortium, Inc. ("ISC")
  2. #
  3. # Permission to use, copy, modify, and/or distribute this software for any
  4. # purpose with or without fee is hereby granted, provided that the above
  5. # copyright notice and this permission notice appear in all copies.
  6. #
  7. # THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
  8. # REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  9. # AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
  10. # INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  11. # LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
  12. # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  13. # PERFORMANCE OF THIS SOFTWARE.
  14. # \brief Message Utility Message File
  15. #
  16. # This is the source of the set of messages generated by the message and
  17. # logging components. The associated .h and .cc files are created by hand from
  18. # this file though and are not built during the build process; this is to avoid
  19. # the chicken-and-egg situation where we need the files to build the message
  20. # compiler, yet we need the compiler to build the files.
  21. $NAMESPACE isc::log
  22. % LOG_BAD_DESTINATION unrecognized log destination: %1
  23. A logger destination value was given that was not recognized. The
  24. destination should be one of "console", "file", or "syslog".
  25. % LOG_BAD_SEVERITY unrecognized log severity: %1
  26. A logger severity value was given that was not recognized. The severity
  27. should be one of "DEBUG", "INFO", "WARN", "ERROR", or "FATAL".
  28. % LOG_BAD_STREAM bad log console output stream: %1
  29. A log console output stream was given that was not recognized. The
  30. output stream should be one of "stdout", or "stderr"
  31. % LOG_DUPLICATE_MESSAGE_ID duplicate message ID (%1) in compiled code
  32. Indicative of a programming error, when it started up, BIND10 detected that
  33. the given message ID had been registered by one or more modules. (All message
  34. IDs should be unique throughout BIND10.) This has no impact on the operation
  35. of the server other that erroneous messages may be logged. (When BIND10 loads
  36. the message IDs (and their associated text), if a duplicate ID is found it is
  37. discarded. However, when the module that supplied the duplicate ID logs that
  38. particular message, the text supplied by the module that added the original
  39. ID will be output - something that may bear no relation to the condition being
  40. logged.
  41. % LOG_DUPLICATE_NAMESPACE line %1: duplicate $NAMESPACE directive found
  42. When reading a message file, more than one $NAMESPACE directive was found. In
  43. this version of the code, such a condition is regarded as an error and the
  44. read will be abandoned.
  45. % LOG_INPUT_OPEN_FAIL unable to open message file %1 for input: %2
  46. The program was not able to open the specified input message file for the
  47. reason given.
  48. % LOG_INVALID_MESSAGE_ID line %1: invalid message identification '%2'
  49. The concatenation of the prefix and the message identification is used as
  50. a symbol in the C++ module; as such it may only contain
  51. % LOG_NAMESPACE_EXTRA_ARGS line %1: $NAMESPACE directive has too many arguments
  52. The $NAMESPACE directive takes a single argument, a namespace in which all the
  53. generated symbol names are placed. This error is generated when the
  54. compiler finds a $NAMESPACE directive with more than one argument.
  55. % LOG_NAMESPACE_INVALID_ARG line %1: $NAMESPACE directive has an invalid argument ('%2')
  56. The $NAMESPACE argument should be a valid C++ namespace. The reader does a
  57. cursory check on its validity, checking that the characters in the namespace
  58. are correct. The error is generated when the reader finds an invalid
  59. character. (Valid are alphanumeric characters, underscores and colons.)
  60. % LOG_NAMESPACE_NO_ARGS line %1: no arguments were given to the $NAMESPACE directive
  61. The $NAMESPACE directive takes a single argument, a namespace in which all the
  62. generated symbol names are placed. This error is generated when the
  63. compiler finds a $NAMESPACE directive with no arguments.
  64. % LOG_NO_MESSAGE_ID line %1: message definition line found without a message ID
  65. Message definition lines are lines starting with a "%". The rest of the line
  66. should comprise the message ID and text describing the message. This error
  67. indicates the message compiler found a line in the message file comprising
  68. just the "%" and nothing else.
  69. % LOG_NO_MESSAGE_TEXT line %1: line found containing a message ID ('%2') and no text
  70. Message definition lines are lines starting with a "%". The rest of the line
  71. should comprise the message ID and text describing the message. This error
  72. is generated when a line is found in the message file that contains the
  73. leading "%" and the message identification but no text.
  74. % LOG_NO_SUCH_MESSAGE could not replace message text for '%1': no such message
  75. During start-up a local message file was read. A line with the listed
  76. message identification was found in the file, but the identification is not
  77. one contained in the compiled-in message dictionary. Either the message
  78. identification has been mis-spelled in the file, or the local file was used
  79. for an earlier version of the software and the message with that
  80. identification has been removed.
  81. This message may appear a number of times in the file, once for every such
  82. unknown message identification.
  83. % LOG_OPEN_OUTPUT_FAIL unable to open %1 for output: %2
  84. The program was not able to open the specified output file for the reason
  85. given.
  86. % LOG_PREFIX_EXTRA_ARGS line %1: $PREFIX directive has too many arguments
  87. The $PREFIX directive takes a single argument, a prefix to be added to the
  88. symbol names when a C++ .h file is created. This error is generated when the
  89. compiler finds a $PREFIX directive with more than one argument.
  90. % LOG_PREFIX_INVALID_ARG line %1: $PREFIX directive has an invalid argument ('%2')
  91. The $PREFIX argument is used in a symbol name in a C++ header file. As such,
  92. it must adhere to restrictions on C++ symbol names (e.g. may only contain
  93. alphanumeric characters or underscores, and may nor start with a digit).
  94. A $PREFIX directive was found with an argument (given in the message) that
  95. violates those restictions.
  96. % LOG_READING_LOCAL_FILE reading local message file %1
  97. This is an informational message output by BIND10 when it starts to read a
  98. local message file. (A local message file may replace the text of one of more
  99. messages; the ID of the message will not be changed though.)
  100. % LOG_READ_ERROR error reading from message file %1: %2
  101. The specified error was encountered reading from the named message file.
  102. % LOG_UNRECOGNISED_DIRECTIVE line %1: unrecognised directive '%2'
  103. A line starting with a dollar symbol was found, but the first word on the line
  104. (shown in the message) was not a recognised message compiler directive.
  105. % LOG_WRITE_ERROR error writing to %1: %2
  106. The specified error was encountered by the message compiler when writing to
  107. the named output file.