Skip to content

Latest commit

 

History

History
74 lines (46 loc) · 3.49 KB

File metadata and controls

74 lines (46 loc) · 3.49 KB

SimpleLog-Topic

High-Performance, Cross-Platform Logging Library for C/C++

Author: Thuan Nguyen Thai
Other contributors: @alperak
Created: April 25, 2025

Problem Statement

  • Providing a logger which is simple-STABLE-powerful for embedded devices to PC and mainframe with flexible configuration.
  • Multi-thread C/C++ logger, portable.
  • A meaningful demo for Systems Programming inspired by W. Richard Stevens(1951-1999).

Requirements

  • POSIX thread/POSIX APIs in UNIX-Like.
  • Win32 APIs in Windows.

Background and References

  • No.

🧩 Proposed Design

Component Description
Log folder [Mandatory] pathfolder=
Daily [Mandatory]
Log rotation [Mandatory] rotation_size=
Time [Mandatory] [yyyy-mm-dd hh-mm-ss.nano]
Info [Mandatory] [tid] [file:func:line]
Number of CPU [Mandatory] ncpu=
topic [Optional] topic=, can on/off this feature.
topic_bin [Optional] topic_bin=, can on/off this feature.
Log level [Mandatory] level=.
Buffer size [Mandatory] buffsize=.
Timer trigger [Mandatory] trigger=.
Safe size of message [Mandatory] max_sz_msg=.
Shared memory key [Optional] shared_key=.

Alternatives Considered

  • No. It should be one more option. It should NOT alternate any libraries, but is really worthy to try with new applications.

Impact

  • No.

Organizational

  • Does this proposal require a new repository? No.
  • Which repositories are expected to be modified to execute this design? Any.

Testing and Validation

References