|
@@ -1,13 +1,14 @@
|
|
|
package fslog
|
|
package fslog
|
|
|
|
|
|
|
|
import (
|
|
import (
|
|
|
|
|
+ "github.com/pkg/errors"
|
|
|
"testing"
|
|
"testing"
|
|
|
)
|
|
)
|
|
|
|
|
|
|
|
func TestFSLogInstanceToConsole(t *testing.T) {
|
|
func TestFSLogInstanceToConsole(t *testing.T) {
|
|
|
LoggerLever = LoggerLevelDebug
|
|
LoggerLever = LoggerLevelDebug
|
|
|
|
|
|
|
|
- Error("demo", "TestFSLogInstanceToConsole", "test", "error test")
|
|
|
|
|
|
|
+ Error("demo", "TestFSLogInstanceToConsole", "test", errors.New("error test"))
|
|
|
Debug("demo", "TestFSLogInstanceToConsole", "test", "debug test")
|
|
Debug("demo", "TestFSLogInstanceToConsole", "test", "debug test")
|
|
|
Info("demo", "TestFSLogInstanceToConsole", "test", "info test")
|
|
Info("demo", "TestFSLogInstanceToConsole", "test", "info test")
|
|
|
Warn("demo", "TestFSLogInstanceToConsole", "test", "warning test")
|
|
Warn("demo", "TestFSLogInstanceToConsole", "test", "warning test")
|