Open demizer opened 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.
log.ExcludeByHeirarchyID(xi ...int) log.ExcludeByString(xr ...string) log.ExcludeByFunctionName(xf ...string) log.ExcludeByRegexp(xr ...*Regexp)
log.ExcludeByHeirarchyID()
Ltree
log.ExcludeByFunctionName()
Preliminary changes have been pushed to the deterministic-log branch.
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:
Notes
log.ExcludeByHeirarchyID()
requires the use of theLtree
flag.log.ExcludeByFunctionName()
excludes output if the log lines comes from the named function.