mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 06:10:55 +00:00
Add format func to alils
This commit is contained in:
parent
705e091593
commit
e1da804b2b
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user