// writeString formats syslog messages using time.RFC3339 and includes the
// hostname, and sends the message to the connection.
writeString formats syslog messages using time.RFC3339 and includes the
hostname, and sends the message to the connection.
// writeString formats syslog messages using time . RFC3339 and includes the // hostname and sends the message to the connection .
func (n *netConn) writeString(framer Framer, formatter Formatter, p Priority, hostname, tag, msg string) error {
	if framer == nil {
		framer = DefaultFramer
	}
	if formatter == nil {
		formatter = LogDNAFormatter
	}
	formattedMessage := framer(formatter(p, hostname, tag, msg))
	_, err := n.conn.Write([]byte(formattedMessage))
	return err
}
func ( n * netConn ) writeString ( framer Framer , formatter Formatter , p Priority , hostname , tag , msg string ) error { if framer == nil { framer = DefaultFramer } if formatter == nil { formatter = LogDNAFormatter } formattedMessage := framer ( formatter ( p , hostname , tag , msg ) ) _ , err := n . conn . Write ( [ ] byte ( formattedMessage ) ) return err }
writeString formats syslog messages using time.RFC3339 and includes the
hostname, and sends the message to the connection.
writeString formats syslog messages using time . RFC3339 and includes the hostname and sends the message to the connection .