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

mysql_appender #66

Closed schmalte04 closed 6 months ago

schmalte04 commented 3 years ago

Is there any way to upload the logs directly to a DB rather than first to a file, open the file and upload it afterwards to DB?

daroczig commented 3 years ago

Yeah, but you would need to write a custom appended function to achieve this, maybe using the dbr package. I planned to provide a PoC example in this package, but never got the chance to write up those couple lines -- so I'd highly appreciate a related PR if anyone might have time for that :bow:

daroczig commented 3 years ago

Actually, I've already written example code for this at https://github.com/daroczig/logger/blob/master/vignettes/write_custom_extensions.Rmd#L56-L72

daroczig commented 6 months ago

hopefully the above is enough pointer. I'm closing the ticket as there doesn't seem to be an active interest in this.