log
log copied to clipboard
add WithTraceAt() method to adjust Trace() log level
Hey @tj! I'm loving Apex's log
module so far, and figured I'd take a crack at adding a method to allow .Trace()
and .Stop()
to log non-errors at a configurable level. I'm happy to rename that method as well — let me know what feels right to you :)
The Trace() and Stop() methods for an Entry default to Info-level logging, and previously didn't offer a way to log non-errors at any other level. Add a WithTraceAt() method to allow that level to be configured.
fixes #93