logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

log4tango::Logger

Author

       Generated automatically by Doxygen for log4tango from the source code.

Version 5.0.1                                    Fri Feb 14 2020                            log4tango::Logger(3)

Constructor & Destructor Documentation

log4tango::Logger::Logger(conststd::string&name,Level::Valuelevel=Level::OFF)
       Constructor.

       Parametersname the fully qualified name of this Loggerlevel the level for this Logger. Defaults to Level::OFFlog4tango::Logger::~Logger()[virtual]
       Destructor.

Member Function Documentation

voidlog4tango::Logger::call_appenders(constLoggingEvent&event)[protected]
       Call the appenders.

       Parametersevent the LogginEvent to log.

   voidlog4tango::Logger::debug(constchar*string_format,...)
       Log a message with debug level.

       Parametersstring_format Format specifier for the log.
           ... The arguments for string_format

   voidlog4tango::Logger::debug(conststd::string&message)[inline]
       Log a message with debug level.

       Parametersmessage string to write in the log file

   LoggerStreamlog4tango::Logger::debug_stream(void)[inline]
       Return a LoggerStream with level DEBUG.

       Returns
           The LoggerStream.

   voidlog4tango::Logger::error(constchar*string_format,...)
       Log a message with error level.

       Parametersstring_format Format specifier for the log.
           ... The arguments for string_format

   voidlog4tango::Logger::error(conststd::string&message)[inline]
       Log a message with error level.

       Parametersmessage string to write in the log file

   LoggerStreamlog4tango::Logger::error_stream(void)[inline]
       Return a LoggerStream with level ERROR.

       Returns
           The LoggerStream.

   voidlog4tango::Logger::fatal(constchar*string_format,...)
       Log a message with fatal level.

       Parametersstring_format Format specifier for the log.
           ... The arguments for string_format

   voidlog4tango::Logger::fatal(conststd::string&message)[inline]
       Log a message with fatal level.

       Parametersmessage string to write in the log file

   LoggerStreamlog4tango::Logger::fatal_stream(void)[inline]
       Return a LoggerStream with level FATAL.

       Returns
           The LoggerStream.

   Level::Valuelog4tango::Logger::get_level()const[inline]
       Returns the assigned Level, if any, for this Logger.

       ReturnsLevel - the assigned Level, can be Level::NOTSET

   conststd::string&log4tango::Logger::get_name()const[inline]
       Return the logger name.

       Returns
           The logger name.

   LoggerStreamlog4tango::Logger::get_stream(Level::Valuelevel,boolfilter=true)[inline]
       Return a LoggerStream with given Level.

       Parameterslevel The Level of the LoggerStream.
           filter The filter flag

       Returns
           The requested LoggerStream.

   voidlog4tango::Logger::info(constchar*string_format,...)
       Log a message with info level.

       Parametersstring_format Format specifier for the log.
           ... The arguments for string_format

   voidlog4tango::Logger::info(conststd::string&message)[inline]
       Log a message with info level.

       Parametersmessage string to write in the log file

   LoggerStreamlog4tango::Logger::info_stream(void)[inline]
       Return a LoggerStream with level INFO.

       Returns
           The LoggerStream.

   boollog4tango::Logger::is_debug_enabled(void)const[inline]
       Return true if the Logger will log messages with level DEBUG.

       Returns
           Whether the Logger will log.

   boollog4tango::Logger::is_error_enabled(void)const[inline]
       Return true if the Logger will log messages with level ERROR.

       Returns
           Whether the Logger will log.

   boollog4tango::Logger::is_fatal_enabled(void)const[inline]
       Return true if the Logger will log messages with level FATAL.

       Returns
           Whether the Logger will log.

   boollog4tango::Logger::is_info_enabled(void)const[inline]
       Return true if the Logger will log messages with level INFO.

       Returns
           Whether the Logger will log.

   boollog4tango::Logger::is_level_enabled(Level::Valuelevel)const[inline]
       Returns true if the level of the Logger is equal to or higher than given level.

       Parameterslevel The level to compare with.

       Returns
           whether logging is enable for this level.

   boollog4tango::Logger::is_warn_enabled(void)const[inline]
       Return true if the Logger will log messages with level WARN.

       Returns
           Whether the Logger will log.

   voidlog4tango::Logger::log(Level::Valuelevel,constchar*string_format,...)
       Log a message with the specified level.

       Parameterslevel The level of this log message.
           string_format Format specifier for the log .
           ... The arguments for string_format

   voidlog4tango::Logger::log(Level::Valuelevel,conststd::string&message)[inline]
       Log a message with the specified level.

       Parameterslevel The level of this log message.
           message string to write in the log file

   voidlog4tango::Logger::log_unconditionally(Level::Valuelevel,constchar*string_format,...)
       Log a message with the specified level without level checking.

       Parameterslevel The level of this log message.
           string_format Format specifier for the log .
           ... The arguments for string_format

   voidlog4tango::Logger::log_unconditionally(Level::Valuelevel,conststd::string&message)
       Log a message with the specified level without level checking.

       Parameterslevel The level of this log message.
           message string to write in the log file

   voidlog4tango::Logger::set_level(Level::Valuelevel)
       Set the level of this Logger (silently ignores invalid values)

       Parameterslevel The level to set.

   voidlog4tango::Logger::warn(constchar*string_format,...)
       Log a message with warn level.

       Parametersstring_format Format specifier for the log.
           ... The arguments for string_format

   voidlog4tango::Logger::warn(conststd::string&message)[inline]
       Log a message with warn level.

       Parametersmessage string to write in the log file

   LoggerStreamlog4tango::Logger::warn_stream(void)[inline]
       Return a LoggerStream with level WARN.

       Returns
           The LoggerStream.

Name

       log4tango::Logger

Synopsis

       #include <Logger.hh>

       Inherits log4tango::AppenderAttachable.

   PublicMemberFunctionsLogger (const std::string &name, Level::Value level=Level::OFF)
           Constructor.
       virtual ~Logger ()
           Destructor.
       const std::string & get_name () const
           Return the logger name.
       void set_level (Level::Value level)
           Set the level of this Logger (silently ignores invalid values)
       Level::Valueget_level () const
           Returns the assigned Level, if any, for this Logger.
       bool is_level_enabled (Level::Value level) const
           Returns true if the level of the Logger is equal to or higher than given level.
       void log (Level::Value level, const char *string_format,...)
           Log a message with the specified level.
       void log (Level::Value level, const std::string &message)
           Log a message with the specified level.
       void log_unconditionally (Level::Value level, const char *string_format,...)
           Log a message with the specified level without level checking.
       void log_unconditionally (Level::Value level, const std::string &message)
           Log a message with the specified level without level checking.
       void debug (const char *string_format,...)
           Log a message with debug level.
       void debug (const std::string &message)
           Log a message with debug level.
       bool is_debug_enabled (void) const
           Return true if the Logger will log messages with level DEBUG.
       LoggerStreamdebug_stream (void)
           Return a LoggerStream with level DEBUG.
       void info (const char *string_format,...)
           Log a message with info level.
       void info (const std::string &message)
           Log a message with info level.
       bool is_info_enabled (void) const
           Return true if the Logger will log messages with level INFO.
       LoggerStreaminfo_stream (void)
           Return a LoggerStream with level INFO.
       void warn (const char *string_format,...)
           Log a message with warn level.
       void warn (const std::string &message)
           Log a message with warn level.
       bool is_warn_enabled (void) const
           Return true if the Logger will log messages with level WARN.
       LoggerStreamwarn_stream (void)
           Return a LoggerStream with level WARN.
       void error (const char *string_format,...)
           Log a message with error level.
       void error (const std::string &message)
           Log a message with error level.
       bool is_error_enabled (void) const
           Return true if the Logger will log messages with level ERROR.
       LoggerStreamerror_stream (void)
           Return a LoggerStream with level ERROR.
       void fatal (const char *string_format,...)
           Log a message with fatal level.
       void fatal (const std::string &message)
           Log a message with fatal level.
       bool is_fatal_enabled (void) const
           Return true if the Logger will log messages with level FATAL.
       LoggerStreamfatal_stream (void)
           Return a LoggerStream with level FATAL.
       LoggerStreamget_stream (Level::Value level, bool filter=true)
           Return a LoggerStream with given Level.

   ProtectedMemberFunctions
       void call_appenders (const LoggingEvent &event)
           Call the appenders.

   AdditionalInheritedMembers

See Also