r-lib / debugme

Easy and efficient debugging for R packages
https://r-lib.github.io/debugme/
Other
147 stars 10 forks source link

debug levels? #27

Closed dpastoor closed 6 years ago

dpastoor commented 6 years ago

Without straying into making debugme into a fullfledged logger, do you have thoughts on allowing at least one additional level like MESSAGE?

gaborcsardi commented 6 years ago

Could you use !DEBUG, !!DEBUG, etc. for this?

dpastoor commented 6 years ago

Yeah! that would work. Is that something that could control the debug level (eg only !!, or even better !!+) or would that need to be parsed from the stdout stream?

gaborcsardi commented 6 years ago

They control the debug level. !! means !!+ effectively.

dpastoor commented 6 years ago

Ah I'm seeing this now that I'm reading the docs more carefully. This is perfect thanks!