demizer / go-logs

A enhanced logging library for Go.
MIT License
3 stars 0 forks source link

Deterministic log output #5

Open demizer opened 10 years ago

demizer commented 10 years ago

Allow the control of log output based on set properties.

Seems like it would be cumbersome to use in practice. Plus grep works great for these purposes. Marked as Trivial.

API additions:

log.ExcludeByHeirarchyID(xi ...int)
log.ExcludeByString(xr ...string)
log.ExcludeByFunctionName(xf ...string)
log.ExcludeByRegexp(xr ...*Regexp)

Notes

demizer commented 10 years ago

Preliminary changes have been pushed to the deterministic-log branch.