Module ql

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.