return (getLoggerPtr()->getEffectiveSeverity());
}
-// Replace the interprocess synchronization object
-
-void
-Logger::setInterprocessSync(isc::util::InterprocessSync* sync) {
- getLoggerPtr()->setInterprocessSync(sync);
-}
-
// Debug level (only relevant if messages of severity DEBUG are being logged).
int
}
}
+// Replace the interprocess synchronization object
+
+void
+Logger::setInterprocessSync(isc::util::InterprocessSync* sync) {
+ getLoggerPtr()->setInterprocessSync(sync);
+}
+
// Comparison (testing only)
bool
/// is the severity of the parent.
virtual isc::log::Severity getEffectiveSeverity();
- /// \brief Replace the interprocess synchronization object
- ///
- /// \param sync The logger uses this synchronization object for
- /// synchronizing output of log messages.
- void setInterprocessSync(isc::util::InterprocessSync* sync);
-
/// \brief Return DEBUG Level
///
/// \return Current setting of debug level. This is returned regardless of
/// \param ident Message identification.
Formatter fatal(const MessageID& ident);
+ /// \brief Replace the interprocess synchronization object
+ ///
+ /// \param sync The logger uses this synchronization object for
+ /// synchronizing output of log messages.
+ void setInterprocessSync(isc::util::InterprocessSync* sync);
+
/// \brief Equality
///
/// Check if two instances of this logger refer to the same stream.
return level.severity;
}
-// Replace the interprocess synchronization object
-
-void
-LoggerImpl::setInterprocessSync(isc::util::InterprocessSync* sync) {
- delete sync_;
- sync_ = sync;
-}
-
// Return current debug level (only valid if current severity level is DEBUG).
int
LoggerImpl::getDebugLevel() {
MessageDictionary::globalDictionary().getText(ident)));
}
+// Replace the interprocess synchronization object
+
+void
+LoggerImpl::setInterprocessSync(isc::util::InterprocessSync* sync) {
+ delete sync_;
+ sync_ = sync;
+}
+
void
LoggerImpl::outputRaw(const Severity& severity, const string& message) {
// Use an interprocess sync locker for mutual exclusion from other
virtual Severity getEffectiveSeverity();
- /// \brief Replace the interprocess synchronization object
- ///
- /// \param sync The logger uses this synchronization object for
- /// synchronizing output of log messages.
- void setInterprocessSync(isc::util::InterprocessSync* sync);
-
/// \brief Return debug level
///
/// \return Current setting of debug level. This will be zero if the
/// This gets you the unformatted text of message for given ID.
std::string* lookupMessage(const MessageID& id);
+ /// \brief Replace the interprocess synchronization object
+ ///
+ /// \param sync The logger uses this synchronization object for
+ /// synchronizing output of log messages.
+ void setInterprocessSync(isc::util::InterprocessSync* sync);
+
/// \brief Equality
///
/// Check if two instances of this logger refer to the same stream.