Skip to content

Instantly share code, notes, and snippets.

@kevinkreiser
kevinkreiser / logging.hpp
Last active May 2, 2026 03:56
Thread-safe logging singleton c++11
#ifndef __LOGGING_HPP__
#define __LOGGING_HPP__
/*
Test this with something like:
g++ -std=c++11 -x c++ -pthread -DLOGGING_LEVEL_ALL -DTEST_LOGGING logging.hpp -o logging_test
./logging_test
*/
#include <string>