UTILLib 2.0
Common C++ library with utilities.
Loading...
Searching...
No Matches
logstream.h File Reference

Implements a stream interface to log messages. This is the file to use in most applications. The LOG_INFO() and the LOG_ERROR() macros is wrap around the location calls.

#include <sstream>
#include <string>
#include "util/logging.h"
Include dependency graph for logstream.h:

Go to the source code of this file.

Classes

class  util::log::LogStream
 This class implements a stream interface around a log message. More...

Namespaces

namespace  util
 Main namespace for the util library.
namespace  util::log
 The log namespace is used for log related classes and functions.

Macros

#define LOG_TRACE()
 Trace log stream.
#define LOG_DEBUG()
 Debug log stream.
#define LOG_INFO()
 Info log stream.
#define LOG_NOTICE()
 Notice log stream.
#define LOG_WARNING()
 Warning log stream.
#define LOG_ERROR()
 Error log stream.
#define LOG_CRITICAL()
 Critical log stream.
#define LOG_ALERT()
 Alert log stream.
#define LOG_EMERGENCY()
 Emergency log stream.

Macro Definition Documentation

◆ LOG_ALERT

#define LOG_ALERT ( )
Value:
util::log::LogStream(util::log::Loc::current(), \
This class implements a stream interface around a log message.
Definition logstream.h:68
@ kAlert
Alert or alarm message.
Definition logging.h:29

◆ LOG_CRITICAL

#define LOG_CRITICAL ( )
Value:
util::log::LogStream(util::log::Loc::current(), \
@ kCritical
Critical message (device error)
Definition logging.h:28

◆ LOG_DEBUG

#define LOG_DEBUG ( )
Value:
util::log::LogStream(util::log::Loc::current(), \
@ kDebug
Debug message.
Definition logging.h:23

◆ LOG_EMERGENCY

#define LOG_EMERGENCY ( )
Value:
util::log::LogStream(util::log::Loc::current(), \
@ kEmergency
Fatal error message.
Definition logging.h:30

◆ LOG_ERROR

#define LOG_ERROR ( )
Value:
util::log::LogStream(util::log::Loc::current(), \
@ kError
Error message.
Definition logging.h:27

◆ LOG_INFO

#define LOG_INFO ( )
Value:
util::log::LogStream(util::log::Loc::current(), \
@ kInfo
Informational message.
Definition logging.h:24

◆ LOG_NOTICE

#define LOG_NOTICE ( )
Value:
util::log::LogStream(util::log::Loc::current(), \
@ kNotice
Notice message. Notify the user.
Definition logging.h:25

◆ LOG_TRACE

#define LOG_TRACE ( )
Value:
util::log::LogStream(util::log::Loc::current(), \
@ kTrace
Trace or listen message.
Definition logging.h:22

◆ LOG_WARNING

#define LOG_WARNING ( )
Value:
util::log::LogStream(util::log::Loc::current(), \
@ kWarning
Warning message.
Definition logging.h:26