Module ql
Available on crate feature
logging only.Expand description
Rust implementation of ql_sys_log and ql_log.
This library acts as a replacement for the C library and will send log
messages to the log crate instead of the syslog.
To avoid dynamic allocation where possible, log targets are mapped to static targets based on known prefixes. Only if no static mapping exists and dynamic log targets are enabled for the given log level, a dynamic target string is constructed using allocation. This is only considered a fallback, missing static mappings should be added as needed.
Functionsยง
- __
ql_ โlog - Sends a formatted string to the log.
- c_
format_ ๐ โstring - get_
metadata ๐ - level_
from_ ๐ql_ sys_ log - level_
from_ ๐quectel_ log - map_
target ๐ - Maps a Quectel log target to a Rust log target.
- map_
target_ ๐static - Returns the static log target mapping for the given Quectel log target.
- ql_
log_ โprint - Sends a formatted string to the log.
- ql_
sys_ โlog_ print - Sends a formatted string to the log.
- ql_
sys_ โlog_ puts - Sends a simple string to the log.