Go to file
Arwed Mett fc4f5a27e3
continuous-integration/drone/tag Build is passing Details
continuous-integration/drone/push Build is passing Details
cleaned up the build system and introduced new targets
2019-03-24 14:43:14 +01:00
cmake cleaned up the build system and introduced new targets 2019-03-24 14:43:14 +01:00
example updated example to new api 2019-03-13 09:48:09 +01:00
images added example image 2018-05-26 16:50:04 +02:00
include/logging better interface 2019-03-13 09:45:47 +01:00
src better interface 2019-03-13 09:45:47 +01:00
.bash_history nicer build 2019-03-17 17:38:10 +01:00
.core.yml better yaml 2019-03-17 18:28:59 +01:00
.gitignore initial commit 2018-05-24 13:41:26 +02:00
CMakeLists.txt cleaned up the build system and introduced new targets 2019-03-24 14:43:14 +01:00
Dockerfile modified docker 2019-03-21 13:35:13 +01:00
LICENSE.txt detect version from git 2019-03-13 13:21:17 +01:00
README.md cleaned up the build system and introduced new targets 2019-03-24 14:43:14 +01:00

README.md

Build Status

Logging.h

A small library which implements logging.

Usage

E.g:

#include "logging/logging.h"

int main(const int argc, const char **argv) {
	println_debug("42");    // -> [DEBUG] 42
	println_error("42");    // -> [ERROR] 42
	println_info("42");     // -> [INFO]  42
	println_warn("42");     // -> [WARN]  42
}

Installation

The package can be installed via source with the following commands.

git clone https://gitea.metthub.de/Pfeifenjoy/logging.h.git
cd logging.h
mkdir build && cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
cmake --build . --target install

Usage with Cmake

You can use logging.h with cmake as follows. Thereby replace <target> with your target.

find_package(logging 0.0.2 EXACT REQUIRED)
target_link_libraries(<target> PRIVATE logging::logging-static)