zap-syslog: github.com/imperfectgo/zap-syslog/syslog Index | Files

package syslog

import "github.com/imperfectgo/zap-syslog/syslog"

Index

Package Files

syslog.go

type Priority Uses

type Priority int

Priority maps to the syslog priority levels

const (
    LOG_EMERG Priority = iota
    LOG_ALERT
    LOG_CRIT
    LOG_ERR
    LOG_WARNING
    LOG_NOTICE
    LOG_INFO
    LOG_DEBUG
)
const (
    LOG_KERN Priority = iota << 3
    LOG_USER
    LOG_MAIL
    LOG_DAEMON
    LOG_AUTH
    LOG_SYSLOG
    LOG_LPR
    LOG_NEWS
    LOG_UUCP
    LOG_CRON
    LOG_AUTHPRIV
    LOG_FTP

    LOG_LOCAL0
    LOG_LOCAL1
    LOG_LOCAL2
    LOG_LOCAL3
    LOG_LOCAL4
    LOG_LOCAL5
    LOG_LOCAL6
    LOG_LOCAL7
)

func FacilityPriority Uses

func FacilityPriority(facility string) (Priority, error)

FacilityPriority converts a facility string into an appropriate priority level or returns an error

Package syslog imports 2 packages (graph) and is imported by 3 packages. Updated 2018-04-19. Refresh now. Tools for package owners.