doip-server

Logging in libdoip

This library uses spdlog for high-performance logging.

Features

Usage

Configuration

#include "util/Logger.h"

// Set log level (only messages at this level or higher will be shown)
doip::Logger::setLevel(spdlog::level::debug);

// Set custom pattern
doip::Logger::setPattern("[%H:%M:%S] [%^%l%$] %v");

// Available levels: trace, debug, info, warn, err, critical, off

Pattern Format

The default pattern is: [%Y-%m-%d %H:%M:%S.%e] [%n] [%^%l%$] %v

Common pattern flags: