clutchlog  0.5.0
Classes | Macros
clutchlog.h File Reference
#include <filesystem>
#include <iostream>
#include <sstream>
#include <fstream>
#include <cassert>
#include <cstdlib>
#include <string>
#include <limits>
#include <regex>
#include <map>
Include dependency graph for clutchlog.h:

Go to the source code of this file.

Classes

class  clutchlog
 
class  clutchlog::fmt
 Color and style formatter for ANSI terminal escape sequences. More...
 
struct  clutchlog::scope_t
 Structure holding a location matching. More...
 

Macros

#define CLUTCHLOG_HAVE_UNIX_SYSINFO   0
 
#define WITH_CLUTCHLOG
 
#define CLUTCHLOG_DEFAULT_FORMAT   "{level_letter} {msg}\t\t\t\t\t{func} @ {file}:{line}\n"
 Default format of the messages.
 
#define CLUTCHDUMP_DEFAULT_FORMAT   "# {level} in {func} @ {file}:{line}"
 Default format of the comment line in file dump.
 
#define CLUTCHDUMP_DEFAULT_SEP   "\n"
 Default item separator for dump.
 
#define CLUTCHLOG_DEFAULT_DEPTH_MARK   ">"
 Default mark for stack depth.
 
#define CLUTCHLOG_DEFAULT_DEPTH_BUILT_NODEBUG   clutchlog::level::progress
 Default level over which calls to the logger are optimized out when NDEBUG is defined.
 
#define CLUTCHLOC   __FILE__, __FUNCTION__, __LINE__
 Handy shortcuts to location.
 
#define CLUTCHLOG(LEVEL, WHAT)
 Log a message at the given level. More...
 
#define CLUTCHDUMP(LEVEL, CONTAINER, FILENAME)
 Dump the given container. More...
 
#define CLUTCHFUNC(LEVEL, FUNC, ...)
 Call an assert at the given level. More...