Skip to content

Instantly share code, notes, and snippets.

View cduvenhorst's full-sized avatar

Carsten Duvenhorst cduvenhorst

View GitHub Profile
@cduvenhorst
cduvenhorst / logging.hpp
Last active November 7, 2023 15:15 — forked from kevinkreiser/logging.hpp
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>