syslog

module
v0.0.0-...-ec220af Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 11, 2021 License: MIT

README

syslog

Resilient Syslog Connector for Golang

Example

package main

import (
        "github.com/GolangResources/syslog/syslog"
)

func main() {
        conn, err := syslog.Dial("ctcp", "127.0.0.1:514", syslog.LOG_NOTICE, nil)
        if (err != nil) {
                panic(err)
        }
        msg := "hi"
        conn.Notice(&msg, "apptest")
        conn.Close()
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL