libqi  1.14
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
Public Member Functions
qi::log::LogStream Class Reference

Each log macro create a LogStream object. More...

#include <qi/log.hpp>

List of all members.

Public Member Functions

 LogStream (const LogLevel level, const char *file, const char *function, const int line, const char *category)
 LogStream. Will log at object destruction.
 LogStream (const LogLevel level, const char *file, const char *function, const int line, const char *category, const char *fmt,...)
 LogStream. Will log at object destruction.
 ~LogStream ()
 Destructor.
LogStreamself ()
 Necessary to work with an anonymous object.

Detailed Description

Each log macro create a LogStream object.

Definition at line 173 of file log.hpp.


Constructor & Destructor Documentation

qi::log::LogStream::LogStream ( const LogLevel  level,
const char *  file,
const char *  function,
const int  line,
const char *  category 
)
inline

LogStream. Will log at object destruction.

Parameters:
level{ debug = 6, verbose=5, info = 4, warning = 3, error = 2, fatal = 1, silent = 0 }
fileFILE
functionFUNCTION
lineLINE
categorylog category

Definition at line 176 of file log.hpp.

qi::log::LogStream::LogStream ( const LogLevel  level,
const char *  file,
const char *  function,
const int  line,
const char *  category,
const char *  fmt,
  ... 
)
inline

LogStream. Will log at object destruction.

Parameters:
level{ debug = 6, verbose=5, info = 4, warning = 3, error = 2, fatal = 1, silent = 0 }
fileFILE
functionFUNCTION
lineLINE
categorylog category
fmtprintf like format string

Definition at line 189 of file log.hpp.


The documentation for this class was generated from the following files: