mirror of
https://github.com/duanhf2012/origin.git
synced 2026-02-03 22:45:13 +08:00
删除test
This commit is contained in:
@@ -1,29 +0,0 @@
|
||||
package log_test
|
||||
|
||||
import (
|
||||
"github.com/name5566/leaf/log"
|
||||
l "log"
|
||||
)
|
||||
|
||||
func Example() {
|
||||
name := "Leaf"
|
||||
|
||||
log.Debug("My name is %v", name)
|
||||
log.Release("My name is %v", name)
|
||||
log.Error("My name is %v", name)
|
||||
// log.Fatal("My name is %v", name)
|
||||
|
||||
logger, err := log.New("release", "", l.LstdFlags)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
defer logger.Close()
|
||||
|
||||
logger.Debug("will not print")
|
||||
logger.Release("My name is %v", name)
|
||||
|
||||
log.Export(logger)
|
||||
|
||||
log.Debug("will not print")
|
||||
log.Release("My name is %v", name)
|
||||
}
|
||||
Reference in New Issue
Block a user