daroczig / logger

A lightweight, modern and flexible, log4j and futile.logger inspired logging utility for R
https://daroczig.github.io/logger
280 stars 41 forks source link

Sink messages to logger file with logger formatting #90

Closed 1beb closed 2 years ago

1beb commented 2 years ago

Let's say you're using a function that already includes the use of message but you want to sink them to an abitrary appender file, following the log_info format. Is there a way to do so? I was contemplating overloading message with log_info but I don't think that's a great idea.

daroczig commented 2 years ago

Not sure if I get this right, but I suspect you are looking for log_messages, right? Please reopen if I misunderstood.

1beb commented 2 years ago

Yes! Perfect!