Open sigbertklinke opened 2 years ago
Thanks! Can you please post your sessionInfo()
output, including the version of loggit
being used?
If this is reproducible, I'll get to work on a fix -- but that fix might end up being a new major version (3.x) depending on the changes.
I would, however, bring your attention to the release notes for v2.0.0, and ask if you're correctly seeing this warning when your message has a newline?
Oh, it's not the multiline, it's your colon after Package
:
msg <- paste0("Package smvgraph %s", utils::packageVersion("smvgraph"), "\n(C) 2022- Sigbert Klinke, HU Berlin")
loggit("DEBUG", msg, echo=FALSE)
read_logs()
timestamp log_lvl log_msg
1 2022-03-19T18:51:36+0100 DEBUG Package smvgraph %s0.2.0\n(C) 2022- Sigbert Klinke, HU Berlin
Please confirm that you see the same. If so, that's an easy fix to the default sanitizer and preparser.
leads in the loggit file to
But reading the log into R produces