mirror of
https://github.com/siddontang/go.git
synced 2025-04-27 13:48:51 +08:00
17 lines
196 B
Go
17 lines
196 B
Go
package log
|
|
|
|
import (
|
|
"os"
|
|
"testing"
|
|
)
|
|
|
|
func TestStdStreamLog(t *testing.T) {
|
|
h, _ := NewStreamHandler(os.Stdout)
|
|
s := NewDefault(h)
|
|
s.Info("hello world")
|
|
|
|
s.Close()
|
|
|
|
Info("hello world")
|
|
}
|