1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-24 18:00:55 +00:00

Add format func to alils

This commit is contained in:
IamCathal 2020-08-20 19:15:27 +01:00
parent 705e091593
commit e1da804b2b

View File

@ -100,6 +100,10 @@ func (c *aliLSWriter) Init(jsonConfig string) (err error) {
return nil return nil
} }
func (c *aliLSWriter) Format(lm *logs.LogMsg) string {
return lm.Msg
}
// WriteMsg writes a message in connection. // WriteMsg writes a message in connection.
// If connection is down, try to re-connect. // If connection is down, try to re-connect.
func (c *aliLSWriter) WriteMsg(lm *logs.LogMsg) error { func (c *aliLSWriter) WriteMsg(lm *logs.LogMsg) error {