Skip to content
This repository was archived by the owner on Oct 10, 2026. It is now read-only.
log1cWorX-e-UPublic archive

About

Thread-sicheres Zeitstempel-Logging fuer C (Nanosekunden relativ zur ersten Meldung)

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

47 Commits

Folders and files

Repository files navigation

logging – Zeitstempel-Logging

Minimales, thread-sicheres Logging für C: logging_log_message schreibt jede Meldung mit Monoton-Nanosekunden-Stempel (relativ zur ersten Meldung) auf stdout und flusht sofort.

Umfang

  • logging_log_message(const char* message) – leerer String wird ignoriert.
  • Intern kritische Sektion (threading_critical_section), initialisiert beim ersten Aufruf.

Nutzung

#include <logging/logging.h>

logging_log_message("startup begin.");

Ausgabe:

[00000000000000000123]: startup begin.

Abhängigkeiten

  • threading (kritische Sektion)

Wiki

Dokumentation: logging – Zeitstempel-Logging (Quartz-Wiki)

Build

cmake -S . -B build
cmake --build build

In ein Projekt einbinden: add_subdirectory(../../libraries/logging …), Einbindung des Headers über den Include-Pfad <logging/logging.h>.

About

Thread-sicheres Zeitstempel-Logging fuer C (Nanosekunden relativ zur ersten Meldung)

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages