Add format func to alils

This commit is contained in:
IamCathal 2020-08-20 19:15:27 +01:00
parent 705e091593
commit e1da804b2b
1 changed files with 4 additions and 0 deletions

View File

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