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 1 year ago
cmake cleaned up the build system and introduced new targets 1 year ago
example updated example to new api 1 year ago
images added example image 2 years ago
include/logging better interface 1 year ago
src better interface 1 year ago
.bash_history nicer build 1 year ago
.core.yml better yaml 1 year ago
.gitignore initial commit 2 years ago
CMakeLists.txt cleaned up the build system and introduced new targets 1 year ago
Dockerfile modified docker 1 year ago
LICENSE.txt detect version from git 1 year ago
README.md cleaned up the build system and introduced new targets 1 year 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)