diff options
Diffstat (limited to 'src/mongo/logv2')
-rw-r--r-- | src/mongo/logv2/log_component.cpp | 4 | ||||
-rw-r--r-- | src/mongo/logv2/log_component_settings.cpp | 4 | ||||
-rw-r--r-- | src/mongo/logv2/log_domain_global.cpp | 4 | ||||
-rw-r--r-- | src/mongo/logv2/log_manager.cpp | 4 | ||||
-rw-r--r-- | src/mongo/logv2/log_manager.h | 12 | ||||
-rw-r--r-- | src/mongo/logv2/log_severity.cpp | 6 | ||||
-rw-r--r-- | src/mongo/logv2/log_source.h | 13 | ||||
-rw-r--r-- | src/mongo/logv2/logv2_bm.cpp | 2 |
8 files changed, 25 insertions, 24 deletions
diff --git a/src/mongo/logv2/log_component.cpp b/src/mongo/logv2/log_component.cpp index 90b9fe52069..ee90ae63e86 100644 --- a/src/mongo/logv2/log_component.cpp +++ b/src/mongo/logv2/log_component.cpp @@ -241,5 +241,5 @@ StringData LogComponent::getNameForLog() const { MONGO_UNREACHABLE; } -} // logv2 -} // mongo +} // namespace logv2 +} // namespace mongo diff --git a/src/mongo/logv2/log_component_settings.cpp b/src/mongo/logv2/log_component_settings.cpp index 603cfd6729f..0003dfcbe8d 100644 --- a/src/mongo/logv2/log_component_settings.cpp +++ b/src/mongo/logv2/log_component_settings.cpp @@ -117,5 +117,5 @@ bool LogComponentSettings::shouldLog(LogComponent component, LogSeverity severit return severity >= LogSeverity::cast(_minimumLoggedSeverity[component].loadRelaxed()); } -} // logv2 -} // mongo +} // namespace logv2 +} // namespace mongo diff --git a/src/mongo/logv2/log_domain_global.cpp b/src/mongo/logv2/log_domain_global.cpp index 2bcb5e224cf..16e00e8f4cc 100644 --- a/src/mongo/logv2/log_domain_global.cpp +++ b/src/mongo/logv2/log_domain_global.cpp @@ -42,5 +42,5 @@ LogSource& LogDomainGlobal::source() { boost::shared_ptr<boost::log::core> LogDomainGlobal::core() { return boost::log::core::get(); } -} -} +} // namespace logv2 +} // namespace mongo diff --git a/src/mongo/logv2/log_manager.cpp b/src/mongo/logv2/log_manager.cpp index 89eb636bf3d..4cd8e7d8382 100644 --- a/src/mongo/logv2/log_manager.cpp +++ b/src/mongo/logv2/log_manager.cpp @@ -121,5 +121,5 @@ bool LogManager::isDefaultBackendsAttached() const { return _impl->_defaultBackendsAttached; } -} // logv2 -} // mongo +} // namespace logv2 +} // namespace mongo diff --git a/src/mongo/logv2/log_manager.h b/src/mongo/logv2/log_manager.h index d80fde255ae..059a3e7d019 100644 --- a/src/mongo/logv2/log_manager.h +++ b/src/mongo/logv2/log_manager.h @@ -58,10 +58,10 @@ public: LogDomain& getGlobalDomain(); /** - * Detaches the default log backends - * - * @note This function is not thread safe. - */ + * Detaches the default log backends + * + * @note This function is not thread safe. + */ void detachDefaultBackends(); /** @@ -72,8 +72,8 @@ public: void reattachDefaultBackends(); /** - * Checks if the default log backends are attached - */ + * Checks if the default log backends are attached + */ bool isDefaultBackendsAttached() const; private: diff --git a/src/mongo/logv2/log_severity.cpp b/src/mongo/logv2/log_severity.cpp index e0286b018f9..896509f5d39 100644 --- a/src/mongo/logv2/log_severity.cpp +++ b/src/mongo/logv2/log_severity.cpp @@ -46,7 +46,11 @@ constexpr auto infoSeverityString = "info"_sd; constexpr auto debugSeverityString = "debug"_sd; constexpr StringData kDebugLevelStrings[LogSeverity::kMaxDebugLevel] = { - "D1"_sd, "D2"_sd, "D3"_sd, "D4"_sd, "D5"_sd, + "D1"_sd, + "D2"_sd, + "D3"_sd, + "D4"_sd, + "D5"_sd, }; } // namespace diff --git a/src/mongo/logv2/log_source.h b/src/mongo/logv2/log_source.h index a833e36feb4..2a3b43653bf 100644 --- a/src/mongo/logv2/log_source.h +++ b/src/mongo/logv2/log_source.h @@ -46,16 +46,13 @@ namespace mongo { namespace logv2 { // Custom logging source that automatically add our set of attributes -class LogSource - : public boost::log::sources::basic_logger<char, - LogSource, - boost::log::sources::single_thread_model> { +class LogSource : public boost::log::sources:: + basic_logger<char, LogSource, boost::log::sources::single_thread_model> { private: private: - typedef boost::log::sources::basic_logger<char, - LogSource, - boost::log::sources::single_thread_model> - base_type; + typedef boost::log::sources:: + basic_logger<char, LogSource, boost::log::sources::single_thread_model> + base_type; public: LogSource() : LogSource(boost::log::core::get()) {} diff --git a/src/mongo/logv2/logv2_bm.cpp b/src/mongo/logv2/logv2_bm.cpp index 0323d7a0100..73958db80f8 100644 --- a/src/mongo/logv2/logv2_bm.cpp +++ b/src/mongo/logv2/logv2_bm.cpp @@ -30,11 +30,11 @@ #define MONGO_LOG_DEFAULT_COMPONENT ::mongo::logger::LogComponent::kDefault #define MONGO_LOGV2_DEFAULT_COMPONENT ::mongo::logv2::LogComponent::kDefault -#include "mongo/logv2/log.h" #include "mongo/logger/console_appender.h" #include "mongo/logger/logger.h" #include "mongo/logger/message_event_utf8_encoder.h" #include "mongo/logv2/component_settings_filter.h" +#include "mongo/logv2/log.h" #include "mongo/logv2/log_domain_impl.h" #include "mongo/logv2/text_formatter.h" #include "mongo/platform/basic.h" |