log icon indicating copy to clipboard operation
log copied to clipboard

add WithTraceAt() method to adjust Trace() log level

Open sjbarag opened this issue 2 years ago • 0 comments

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

sjbarag avatar Apr 16 '22 21:04 sjbarag