You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Arwed Mett fc4f5a27e3 cleaned up the build system and introduced new targets 3 years ago
cmake cleaned up the build system and introduced new targets 3 years ago
example updated example to new api 3 years ago
images added example image 3 years ago
include/logging better interface 3 years ago
src better interface 3 years ago
.bash_history nicer build 3 years ago
.core.yml better yaml 3 years ago
.gitignore initial commit 3 years ago
CMakeLists.txt cleaned up the build system and introduced new targets 3 years ago
Dockerfile modified docker 3 years ago
LICENSE.txt detect version from git 3 years ago
README.md cleaned up the build system and introduced new targets 3 years ago

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)