finish logs module

This commit is contained in:
astaxie
2013-08-27 23:48:58 +08:00
parent 49bbca0ce3
commit f92973794e
9 changed files with 788 additions and 0 deletions

11
logs/smtp_test.go Normal file
View File

@@ -0,0 +1,11 @@
package logs
import (
"testing"
)
func TestSmtp(t *testing.T) {
log := NewLogger(10000)
log.SetLogger("smtp", `{"username":"xxxxxx@gmail.com","password":"xxxxxxx","host":"smtp.gmail.com:587","sendTos":["xiemengjun@gmail.com"]}`)
log.Critical("sendmail critical")
}