extern const isc::log::MessageID LOG_PREFIX_INVALID_ARG = "LOG_PREFIX_INVALID_ARG";
extern const isc::log::MessageID LOG_READING_LOCAL_FILE = "LOG_READING_LOCAL_FILE";
extern const isc::log::MessageID LOG_READ_ERROR = "LOG_READ_ERROR";
-extern const isc::log::MessageID LOG_UNRECOGNISED_DIRECTIVE = "LOG_UNRECOGNISED_DIRECTIVE";
+extern const isc::log::MessageID LOG_UNRECOGNIZED_DIRECTIVE = "LOG_UNRECOGNIZED_DIRECTIVE";
extern const isc::log::MessageID LOG_WRITE_ERROR = "LOG_WRITE_ERROR";
} // namespace log
"LOG_PREFIX_INVALID_ARG", "line %1: $PREFIX directive has an invalid argument ('%2')",
"LOG_READING_LOCAL_FILE", "reading local message file %1",
"LOG_READ_ERROR", "error reading from message file %1: %2",
- "LOG_UNRECOGNISED_DIRECTIVE", "line %1: unrecognised directive '%2'",
+ "LOG_UNRECOGNIZED_DIRECTIVE", "line %1: unrecogniszd directive '%2'",
"LOG_WRITE_ERROR", "error writing to %1: %2",
NULL
};
extern const isc::log::MessageID LOG_PREFIX_INVALID_ARG;
extern const isc::log::MessageID LOG_READING_LOCAL_FILE;
extern const isc::log::MessageID LOG_READ_ERROR;
-extern const isc::log::MessageID LOG_UNRECOGNISED_DIRECTIVE;
+extern const isc::log::MessageID LOG_UNRECOGNIZED_DIRECTIVE;
extern const isc::log::MessageID LOG_WRITE_ERROR;
} // namespace log
-# Copyright (C) 2011, 2014 Internet Systems Consortium, Inc. ("ISC")
+# Copyright (C) 2011, 2014, 2015 Internet Systems Consortium, Inc. ("ISC")
#
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
% LOG_BAD_STREAM bad log console output stream: %1
Logging has been configured so that output is written to the terminal
-(console) but the stream on which it is to be written is not recognised.
+(console) but the stream on which it is to be written is not recognized.
Allowed values are "stdout" and "stderr".
% LOG_DUPLICATE_MESSAGE_ID duplicate message ID (%1) in compiled code
% LOG_READ_ERROR error reading from message file %1: %2
The specified error was encountered reading from the named message file.
-% LOG_UNRECOGNISED_DIRECTIVE line %1: unrecognised directive '%2'
+% LOG_UNRECOGNIZED_DIRECTIVE line %1: unrecognized directive '%2'
Within a message file, a line starting with a dollar symbol was found
(indicating the presence of a directive) but the first word on the line
-(shown in the message) was not recognised.
+(shown in the message) was not recognized.
% LOG_WRITE_ERROR error writing to %1: %2
The specified error was encountered by the message compiler when writing
$NAMESPACE isc::log
-% LOG_UNRECOGNISED_DIRECTIVE line %1: unrecognised directive '%2'
+% LOG_UNRECOGNIZED_DIRECTIVE line %1: unrecognized directive '%2'
A line starting with a dollar symbol was found, but the first word on the line
-(shown in the message) was not a recognised message compiler directive.
+(shown in the message) was not a recognized message compiler directive.
% LOG_WRITE_ERROR error writing to %1: %2
The specified error was encountered by the message compiler when writing to
of the text of that line.</li>
<li>Lines starting with "$" are directives. At present, just one
-directive is recognised:
+directive is recognized:
<dl>
<dt>$NAMESPACE <namespace-name></dt>
<dd>The sole argument is the name of the namespace in which the
-// Copyright (C) 2011 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2011, 2015 Internet Systems Consortium, Inc. ("ISC")
//
// Permission to use, copy, modify, and/or distribute this software for any
// purpose with or without fee is hereby granted, provided that the above
} else {
- // Unrecognised directive
+ // Unrecognized directive
isc_throw_3(MessageException, "Unrecognized directive",
- LOG_UNRECOGNISED_DIRECTIVE, tokens[0],
+ LOG_UNRECOGNIZED_DIRECTIVE, tokens[0],
lineno_);
}
}
-// Copyright (C) 2011 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2011, 2015 Internet Systems Consortium, Inc. ("ISC")
//
// Permission to use, copy, modify, and/or distribute this software for any
// purpose with or without fee is hereby granted, provided that the above
TEST_F(MessageReaderTest, InvalidDirectives) {
// Check that a "$" with nothing else generates an error
- processLineException(reader_, "$", LOG_UNRECOGNISED_DIRECTIVE);
- processLineException(reader_, "$xyz", LOG_UNRECOGNISED_DIRECTIVE);
+ processLineException(reader_, "$", LOG_UNRECOGNIZED_DIRECTIVE);
+ processLineException(reader_, "$xyz", LOG_UNRECOGNIZED_DIRECTIVE);
}
// Check that it can parse a prefix