Skip to content

Commit

Permalink
fix predefined syslog priority
Browse files Browse the repository at this point in the history
  • Loading branch information
mdigger committed Dec 14, 2022
1 parent bcce048 commit 53f5b02
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions level.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ type priority uint8

const (
// From /usr/include/sys/syslog.h.
log_EMERG priority = iota
log_ALERT
log_CRIT
log_ERR
log_WARNING
log_NOTICE
log_INFO
log_DEBUG
log_EMERG priority = 0
log_ALERT priority = 1
log_CRIT priority = 2
log_ERR priority = 3
log_WARNING priority = 4
log_NOTICE priority = 5
log_INFO priority = 6
log_DEBUG priority = 7
)

func level(l slog.Level) priority {
Expand Down

0 comments on commit 53f5b02

Please sign in to comment.