Skip to content

Output wrapped in msg="..." #32

Description

@patte

I just found your very promising library! Cool project!

Checks

  • I have checked that this issue has not already been reported.
  • I have confirmed this bug exists on the latest version of Rusty Logger.

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
version: 0.5.0
even though I installed tag v0.6.0

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingpythonissue/bug/enhancement for python

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions