-
Notifications
You must be signed in to change notification settings - Fork 2
Examples DynamicControl
Eduard Mishkurov edited this page Apr 7, 2026
·
1 revision
This example shows how to enable runtime control of Logme and change settings from another terminal.
This example shows how to enable runtime control of Logme and change settings from another terminal.
- Starts the Logme control server (TCP, no SSL).
- Spawns two worker threads (
t1,t2). - Each thread logs:
- to the default channel,
- to its own channel (
t1/t2), - and then to the same channel with two different subsystem IDs.
The example prints the control server address and a list of useful commands on startup.
Enable the example and the tool:
cmake -S . -B build -G Ninja \
-DLOGME_BUILD_EXAMPLES=ON \
-DLOGME_BUILD_TOOLS=ON
cmake --build build -jTerminal 1:
./DynamicControlTerminal 2 (replace the port if you changed it):
./logmectl -p 7791 list
./logmectl -p 7791 channel disable t1
./logmectl -p 7791 channel enable t1
./logmectl -p 7791 channel level t2 error
./logmectl -p 7791 subsystem list
./logmectl -p 7791 subsystem mode blacklist
./logmectl -p 7791 subsystem add wrk1-
subsystem mode blacklistblocks subsystems present in the list. -
subsystem mode whitelistallows only subsystems present in the list.
logme — flexible runtime logging system
Home · Getting Started · Architecture · Output · Backends · Configuration
GitHub: https://github.com/efmsoft/logme