I just found your very promising library! Cool project!
Checks
Reproducible example
from rusty_logger import LoggingConfig, LogLevel, RustyLogger
RustyLogger.setup_logging(
config=LoggingConfig(
log_level=LogLevel.Debug if config.verbose else LogLevel.Info,
show_threads=False,
)
)
from rusty_logger import RustyLogger
logger = RustyLogger.get_logger()
logger.info(f"Filesystem: s3")
logger.info("Connecting to ECMWF datastore")
Log output
2026-03-06T20:23:28::6021 INFO msg="Filesystem: s3"
2026-03-06T20:23:28::7097 INFO msg="Connecting to ECMWF datastore"
Issue description
The output is wrapped in msg=""
I suspect something like this would be needed in logger.rs
#[pyo3(signature = (message, *args))]
pub fn info(&self, message: &str, args: &Bound<'_, PyTuple>) {
let args = parse_args(args);
let msg = match args {
Some(val) => format_string(message, &val),
None => message.to_string(),
};
- tracing::info!(msg);
+ tracing::info!("{}", msg)
}
Expected behavior
2026-03-06T20:23:28::6021 INFO Filesystem: s3
2026-03-06T20:23:28::7097 INFO Connecting to ECMWF datastore
Installed versions
Details
even though I installed tag v0.6.0
I just found your very promising library! Cool project!
Checks
Reproducible example
Log output
Issue description
The output is wrapped in
msg=""I suspect something like this would be needed in logger.rs
#[pyo3(signature = (message, *args))] pub fn info(&self, message: &str, args: &Bound<'_, PyTuple>) { let args = parse_args(args); let msg = match args { Some(val) => format_string(message, &val), None => message.to_string(), }; - tracing::info!(msg); + tracing::info!("{}", msg) }Expected behavior
Installed versions
Details