|
|
|
@ -686,11 +686,11 @@ func newLogService() { |
|
|
|
|
sec.Key("PROTOCOL").In("tcp", []string{"tcp", "unix", "udp"}), |
|
|
|
|
sec.Key("ADDR").MustString(":7020")) |
|
|
|
|
case "smtp": |
|
|
|
|
LogConfigs[i] = fmt.Sprintf(`{"level":%s,"username":"%s","password":"%s","host":"%s","sendTos":"%s","subject":"%s"}`, level, |
|
|
|
|
LogConfigs[i] = fmt.Sprintf(`{"level":%s,"username":"%s","password":"%s","host":"%s","sendTos":["%s"],"subject":"%s"}`, level, |
|
|
|
|
sec.Key("USER").MustString("example@example.com"), |
|
|
|
|
sec.Key("PASSWD").MustString("******"), |
|
|
|
|
sec.Key("HOST").MustString("127.0.0.1:25"), |
|
|
|
|
sec.Key("RECEIVERS").MustString("[]"), |
|
|
|
|
strings.Replace(sec.Key("RECEIVERS").MustString("example@example.com"), ",", "\",\"", -1), |
|
|
|
|
sec.Key("SUBJECT").MustString("Diagnostic message from serve")) |
|
|
|
|
case "database": |
|
|
|
|
LogConfigs[i] = fmt.Sprintf(`{"level":%s,"driver":"%s","conn":"%s"}`, level, |
|
|
|
|