Пример #1
0
func TestFile(t *testing.T) {
	c := conf.InitDldbConfiguration("testlog.conf")
	SetLogger("file", &c.LogConfiguration)
	Trace("test")
	Debug("debug")

}
Пример #2
0
func TestConsole(t *testing.T) {
	// dldbLogger.SetLogger("console", nil)
	c := conf.InitDldbConfiguration("testlog.conf")
	SetLogger("console", &c.LogConfiguration)
	Trace("trace")
	Critical("critical")
	DelLogger("console")
	Trace("trace")
}