smbache / loggr

Easy and flexible logging for R
Other
79 stars 6 forks source link

Is there any functionality that enables me to only save custom messages into log file and not the "DEBUG" lines. #35

Open pallavisurana1 opened 3 years ago

pallavisurana1 commented 3 years ago

Hi, nice package. Ive been using it with my shiny application. Was wondering if there is a way to ensure that the following lines are not saved in my log file!

2021-05-06 20:15:16.553 - DEBUG - Activating logging to ~path_to_log/logfile.log 2021-05-06 20:15:28.352 - DEBUG - Activating logging to console

I only want my custom messages: 2021-05-06 20:15:28.358 - SIMPLEMESSAGE - Running method 1 2021-05-06 20:15:28.361 - SIMPLEMESSAGE - Successful method 1