Standard Library

GoLogSyslog

Go stdlib package — log/syslog. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.

Other Methods

.Dial()Neutral
#
Signature
Dial(network string, raddr string, priority Priority, tag string) (*Writer, error)

Dial establishes a connection to a log daemon by connecting to

.New()Neutral
#
Signature
New(priority Priority, tag string) (*Writer, error)

New establishes a new connection to the system log daemon. Each

.NewLogger()Neutral
#
Signature
NewLogger(p Priority, logFlag int) (*log.Logger, error)

NewLogger creates a log.Logger whose output is written to the

.Writer.Alert()Neutral
#
Signature
Writer.Alert(m string) error

Alert logs a message with severity LOG_ALERT, ignoring the severity

.Writer.Close()Neutral
#
Signature
Writer.Close() error

Close closes a connection to the syslog daemon.

.Writer.Crit()Neutral
#
Signature
Writer.Crit(m string) error

Crit logs a message with severity LOG_CRIT, ignoring the severity

.Writer.Debug()Neutral
#
Signature
Writer.Debug(m string) error

Debug logs a message with severity LOG_DEBUG, ignoring the severity

.Writer.Emerg()Neutral
#
Signature
Writer.Emerg(m string) error

Emerg logs a message with severity LOG_EMERG, ignoring the severity

.Writer.Err()Neutral
#
Signature
Writer.Err(m string) error

Err logs a message with severity LOG_ERR, ignoring the severity

.Writer.Info()Neutral
#
Signature
Writer.Info(m string) error

Info logs a message with severity LOG_INFO, ignoring the severity

Fully-Qualified Names

FQNField
log/syslogfqns[0]

Wrong FQN → 0 findings. Verify with: change fqns to garbage → must produce 0 results.

Import

go.mod
// standard library — no go.mod entry required
rule.py
from codepathfinder.go_rule import ...  # log/syslog