Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent duplication of messages and warnings? #27

Open
DarwinAwardWinner opened this issue Mar 17, 2017 · 0 comments
Open

Prevent duplication of messages and warnings? #27

DarwinAwardWinner opened this issue Mar 17, 2017 · 0 comments

Comments

@DarwinAwardWinner
Copy link

I like the simplicity of this package, and would like to use it just to add timestamps to my messages and warnings. However, it seems that the timestamped messages appear in addition to the normal ones rather then replacing them. Is there any way to fix this?

> library(loggr)
> log_file("console")
2017-03-17 11:15:51.149 - DEBUG - Activating logging to console
> message("This appears twice")
2017-03-17 11:22:56.405 - SIMPLEMESSAGE - This appears twice
This appears twice

(Obviously I could just replace message with log_info, etc., but I can't do that in other packages' code that uses message.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant