Commit abdf6245 authored by Stephen Morris's avatar Stephen Morris

[trac745] Add message definitions

Note that nsasdef.cc and nsasdef.h are derived from nsasdef.msg and
really should be generated from it during the build process.  For now
though, they are generated and added to the git repository.
parent 87e4b987
// Copyright (C) 2011 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
// copyright notice and this permission notice appear in all copies.
//
// THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
// REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
// AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
// INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
// LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
// OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
// PERFORMANCE OF THIS SOFTWARE.
#ifndef __NSAS_LEVELS_H
#define __NSAS_LEVELS_H
/// \brief NSAS Debug Levels
///
/// Defines the levels used to output debug messages in the NSAS. Note that
/// higher numbers equate to more verbose (and detailed) output.
const int NSAS_DBG_TRACE = 10; // Trace of normal operations
#endif // __NSAS_LEVELS_H
// File created from nsasdef.msg on Thu Apr 28 09:42:02 2011
#include <cstddef>
#include <log/message_types.h>
#include <log/message_initializer.h>
namespace isc {
namespace nsas {
extern const isc::log::MessageID NSAS_LOOKUPCANCEL = "LOOKUPCANCEL";
extern const isc::log::MessageID NSAS_LOOKUPZONE = "LOOKUPZONE";
} // namespace nsas
} // namespace isc
namespace {
const char* values[] = {
"LOOKUPCANCEL", "lookup for zone %s has been cancelled",
"LOOKUPZONE", "searching NSAS for nameservers for zone %s",
NULL
};
const isc::log::MessageInitializer initializer(values);
} // Anonymous namespace
// File created from nsasdef.msg on Thu Apr 28 09:42:02 2011
#ifndef __NSASDEF_H
#define __NSASDEF_H
#include <log/message_types.h>
namespace isc {
namespace nsas {
extern const isc::log::MessageID NSAS_LOOKUPCANCEL;
extern const isc::log::MessageID NSAS_LOOKUPZONE;
} // namespace nsas
} // namespace isc
#endif // __NSASDEF_H
# Copyright (C) 2011 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
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
# AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
# PERFORMANCE OF THIS SOFTWARE.
$PREFIX NSAS_
$NAMESPACE isc::nsas
LOOKUPCANCEL lookup for zone %s has been cancelled
+ A debug message, this is output when a NSAS lookup for a zone has been
+ cancelled.
LOOKUPZONE searching NSAS for nameservers for zone %s
+ A debug message, this is output when a call is made to the NSAS to obtain
+ the nameservers for the specified zone.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment