27 lines
382 B
Go
27 lines
382 B
Go
|
package log
|
||
|
|
||
|
import (
|
||
|
"testing"
|
||
|
"fmt"
|
||
|
)
|
||
|
|
||
|
func TestLoadLogConfig(t *testing.T) {
|
||
|
path := "./seelogconfig.xml"
|
||
|
|
||
|
err := LoadLogConfig(path)
|
||
|
|
||
|
if err != nil {
|
||
|
fmt.Println("Error Config")
|
||
|
}
|
||
|
|
||
|
defer Flush()
|
||
|
|
||
|
Debug("Debugddddddddd")
|
||
|
Warn("Warnddddd")
|
||
|
Error("Errorddddd")
|
||
|
Info("Infoddd")
|
||
|
Critical("Criticalddd")
|
||
|
//Fatal("Fatal")
|
||
|
|
||
|
|
||
|
}
|