|
StreamLog 1.0.0
A lightweight C++11 logging library with stream-based API
|
A lightweight C++11 logging library with stream-based API and colored output. More...
#include <ctime>#include <fstream>#include <iostream>#include <sstream>Go to the source code of this file.
Classes | |
| struct | StreamColor |
| ANSI color codes for log levels. More... | |
| class | StreamLog |
| Main logging class with singleton pattern. More... | |
| class | StreamLog::LogStatement |
| RAII wrapper for building and committing log messages. More... | |
Enumerations | |
| enum | LogLevel { TRACE , DEBUG , INFO , WARN , ERROR , FATAL } |
| Log severity levels. More... | |
Functions | |
| StreamLog::LogStatement | log (LogLevel level) |
| Global logging function. | |
A lightweight C++11 logging library with stream-based API and colored output.
StreamLog provides a simple, header-friendly logging interface with:
Customize output file and console logging:
Set compile-time log level filtering:
| enum LogLevel |
| StreamLog::LogStatement log | ( | LogLevel | level | ) |