mirror of
https://github.com/arnaucube/hermez-node.git
synced 2026-02-07 19:36:44 +01:00
Update log package with fields & file log
Update log package with fields & file log, and update constants in the repository code to be MixedCase. resolves #91, resolves #92, resolves #95
This commit is contained in:
@@ -5,10 +5,15 @@ import (
|
||||
)
|
||||
|
||||
func TestLog(t *testing.T) {
|
||||
Info("Test log.Infow", "value", 10)
|
||||
// Init("debug", "test.log")
|
||||
|
||||
Info("Test log.Info", " value is ", 10)
|
||||
Infof("Test log.Infof %d", 10)
|
||||
Infow("Test log.Infow", "value", 10)
|
||||
Debugf("Test log.Debugf %d", 10)
|
||||
Error("Test log.Error", "value", 10)
|
||||
Error("Test log.Error", " value is ", 10)
|
||||
Errorf("Test log.Errorf %d", 10)
|
||||
Errorw("Test log.Errorw", "value", 10)
|
||||
Warnf("Test log.Warnf %d", 10)
|
||||
Warnw("Test log.Warnw", "value", 10)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user