lxmd-0.1.0 is not a library.
lxmd - LXMF Propagation Daemon
lxmd is a propagation daemon for the LXMF (LoRa eXtended Messaging Format) protocol.
Logging
By default, lxmd initializes env_logger with configurable log levels.
Log Levels
The log level can be controlled via:
- The
loglevelconfiguration file setting (0-7) - Command-line flags:
--verboseand--quiet
| Level | Description |
|---|---|
| 0-1 | Error only |
| 2-3 | Warning and above |
| 4 | Info and above (default) |
| 5-6 | Debug and above |
| 7 | Trace (most verbose) |
Using a Custom Logger
To use your own logger implementation, disable the default logger initialization:
[]
= { = "x.y", = false, = [] }
Then initialize your logger before calling lxmd functions:
// Example: Android logcat
init_once;
// Example: Custom logger
;
set_logger.unwrap;
set_max_level;
Platform-Specific Loggers
Android
For Android platforms, you can use the built-in Android logger feature:
[]
= { = "x.y", = false, = ["android-logger"] }
This automatically uses android_logger for logcat integration when running on Android.
Features
init-logger(default): Initializeenv_loggeron startupandroid-logger: Use Android's logcat for logging (Android only)