X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Utils%2FLogger%2FLevels.hh;h=f537fce8cb5e4b85abb2559ef7dfbf194dfc0cd2;hb=4e2b741f18b63e97ab4eef30fcee1dec999541be;hp=e3bd8695e8a1a4797fbe2d473f0ef15171f1f2ef;hpb=f73fa16ed5abdce272ac77f8b8b9ef2b9922c266;p=senf.git diff --git a/Utils/Logger/Levels.hh b/Utils/Logger/Levels.hh index e3bd869..f537fce 100644 --- a/Utils/Logger/Levels.hh +++ b/Utils/Logger/Levels.hh @@ -1,8 +1,8 @@ // $Id$ // -// Copyright (C) 2007 -// Fraunhofer Institute for Open Communication Systems (FOKUS) -// Competence Center NETwork research (NET), St. Augustin, GERMANY +// Copyright (C) 2007 +// Fraunhofer Institute for Open Communication Systems (FOKUS) +// Competence Center NETwork research (NET), St. Augustin, GERMANY // Stefan Bund // // This program is free software; you can redistribute it and/or modify @@ -37,11 +37,12 @@ namespace log { /** \defgroup loglevels Log levels - These are the valid log levels with some additional special values: + These are the valid %log levels with some additional special values: -
VERBOSE
Really verbose log messages. Messages at this level are used for +
VERBOSE
Really verbose %log messages. Messages at this level are used for internal debugging. They should be enabled only selectively within the areas currently under - inspection.
+ inspection. The default %log stream senf::log::Debug has these messages disabled at + compile time by default. To enable them, see \ref config.
NOTICE
Arbitrary unimportant notice. Message which normally should be disabled but might be informative to better understand the programs operation.
@@ -57,45 +58,44 @@ namespace log {
FATAL
Error condition which does terminate program execution or enforces a restart or some kind of re-initialization with loss of state and context.
- There are also some special values which must not be used as a log level: + There are also some special values which must not be used as a %log level: -
DISABLED
Disable all log messages.
+
DISABLED
Disable all %log messages.
-
NONE
Special value which signifies inheritance of the default log +
NONE
Special value which signifies inheritance of the default %log level.
- Log levels are classes, not numbers. Each log level class has a \c value member which gives + Log levels are classes, not numbers. Each %log level class has a \c value member which gives that levels numeric priority. The larger the number, the more important the message is. - \implementation The log levels need to be classes since areas and streams are classes: Since - log arguments (stream, area and level) may appear in any order and number, it is much + \implementation The %log levels need to be classes since areas and streams are classes: Since + %log arguments (stream, area and level) may appear in any order and number, it is much simpler to parse them if they are all of the same type. */ - ///\ingroup loglevels ///\{ - /** \brief Log level VERBOSE + /** \brief Log level %VERBOSE \see loglevels */ struct VERBOSE : public detail::LevelBase { static unsigned const value = 1; }; - /** \brief Log level NOTICE + /** \brief Log level %NOTICE \see loglevels */ struct NOTICE : public detail::LevelBase { static unsigned const value = 2; }; - /** \brief Log level MESSAGE + /** \brief Log level %MESSAGE \see loglevels */ struct MESSAGE : public detail::LevelBase { static unsigned const value = 3; }; - /** \brief Log level IMPORTANT + /** \brief Log level %IMPORTANT \see loglevels */ struct IMPORTANT : public detail::LevelBase { static unsigned const value = 4; }; - /** \brief Log level CRITICAL + /** \brief Log level %CRITICAL \see loglevels */ struct CRITICAL : public detail::LevelBase { static unsigned const value = 5; }; - /** \brief Log level FATAL + /** \brief Log level %FATAL \see loglevels */ struct FATAL : public detail::LevelBase { static unsigned const value = 6; }; @@ -103,7 +103,7 @@ namespace log { \see loglevels */ struct DISABLED : public detail::LevelBase { static unsigned const value = 7; }; - /** \brief Inherit log level + /** \brief Inherit %log level \see loglevels */ struct NONE : public detail::LevelBase { static unsigned const value = 0; };