github.com/technosophos/deis@v1.7.1-0.20150915173815-f9005256004b/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 }