Nemiver  0.3
Classes | Namespaces | Macros | Functions
nmv-log-stream.h File Reference
#include <string>
#include "nmv-api-macros.h"
#include "nmv-ustring.h"
#include "nmv-safe-ptr.h"

Go to the source code of this file.

Classes

class  nemiver::common::LogStream
 the log stream class it features logs on cout, cerr, and files. it also features log domains and log levels. More...
 

Namespaces

 nemiver
 
 nemiver::common
 

Macros

#define NMV_DEFAULT_DOMAIN
 
#define NMV_GENERAL_DOMAIN   "general-domain"
 

Functions

LogStream & nemiver::common::timestamp (LogStream &)
 logs a timestamp. Basically the the current date. You use it like: nemiver::LogStream out; out << nemiver::timestamp ; More...
 
LogStream & nemiver::common::flush (LogStream &)
 flushes the stream Use it like: nemiver::LogStream out; out << "Hello" << nemiver::flush; More...
 
LogStream & nemiver::common::endl (LogStream &)
 log a '\n' and flushes the stream Use it like: nemiver::LogStream out; out << "hello"<< nemiver::endl; More...
 
LogStream & nemiver::common::level_normal (LogStream &)
 sets the log level to normal Use it like nemiver::LogStream out; out << nemiver::level_normal << "blabla"; More...
 
LogStream & nemiver::common::level_verbose (LogStream &)
 sets the log level to verbose Use it lik: nemiver::LogStream out; out << nemiver::level_verbose << "bla bla bla"; More...
 

Macro Definition Documentation

◆ NMV_DEFAULT_DOMAIN

#define NMV_DEFAULT_DOMAIN
Value:
__extension__ \
({ \
const char* path = __FILE__; \
Glib::path_get_basename (path); \
})

◆ NMV_GENERAL_DOMAIN

#define NMV_GENERAL_DOMAIN   "general-domain"