mirror of
https://github.com/arnaucube/hermez-node.git
synced 2026-02-07 11:26:44 +01:00
Update log package with fields & file log, and update constants in the repository code to be MixedCase. resolves #91, resolves #92, resolves #95
20 lines
430 B
Go
20 lines
430 B
Go
package log
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
func TestLog(t *testing.T) {
|
|
// 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 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)
|
|
}
|