Home | History | Annotate | Download | only in syslog

Lines Matching refs:Writer

75 // A Writer is a connection to a syslog server.
76 type Writer struct {
104 // write to the returned writer sends a log message with the given
106 func New(priority Priority, tag string) (*Writer, error) {
112 // writer sends a log message with the given facility, severity and
117 func Dial(network, raddr string, priority Priority, tag string) (*Writer, error) {
127 w := &Writer{
147 func (w *Writer) connect() (err error) {
173 func (w *Writer) Write(b []byte) (int, error) {
178 func (w *Writer) Close() error {
192 func (w *Writer) Emerg(m string) error {
199 func (w *Writer) Alert(m string) error {
206 func (w *Writer) Crit(m string) error {
213 func (w *Writer) Err(m string) error {
220 func (w *Writer) Warning(m string) error {
227 func (w *Writer) Notice(m string) error {
234 func (w *Writer) Info(m string) error {
241 func (w *Writer) Debug(m string) error {
246 func (w *Writer) writeAndRetry(p Priority, s string) (int, error) {
265 func (w *Writer) write(p Priority, msg string) (int, error) {
278 // an io.Writer.