github.com/rochacon/deis@v1.0.2-0.20150903015341-6839b592a1ff/logger/syslog/message.go (about) 1 package syslog 2 3 import ( 4 "fmt" 5 "strings" 6 ) 7 8 // SyslogMessage is a textual system log message. 9 type SyslogMessage interface { 10 fmt.Stringer 11 } 12 13 // Message defines a syslog message. 14 type Message struct { 15 Msg string 16 } 17 18 func (m *Message) String() string { 19 return strings.TrimSuffix(m.Msg, "\n") 20 }