Closed jmzwcn closed 1 year ago
There are too many APIs, Please just provide the exact set of logging APIs that are: Identical with the std lib's log APIs, i.e., the vanilla log APIs in standard lib, logrus also has the same compatibility. // We need this API to be identical to standard logging API import "github.com/tricorder/src/utils/log" log.Infof("...", ...) log.Errorf("...", ...) Just enough APIs to be used, not extra ones
There are too many APIs,
Please just provide the exact set of logging APIs that are:
log
// We need this API to be identical to standard logging API import "github.com/tricorder/src/utils/log" log.Infof("...", ...) log.Errorf("...", ...)
I think we should provide the same features(APIs) compared with standard logrus package, but easier to use for tricorder. Original library is here: https://github.com/sirupsen/logrus/blob/master/exported.go
Hasn't been any activity for a while. Close.
Additionally, you need to provide a linter to prevent people from using other forms of logging APIs.
Already added a linter for this logger.
I think we should provide the same features(APIs) compared with standard logrus package, but easier to use for tricorder. Original library is here: https://github.com/sirupsen/logrus/blob/master/exported.go