Documentation
¶
Overview ¶
Package logsetup turns the log settings of nps and npc into slogx configuration, the same way for both.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Options ¶
type Options struct {
Output string // stdout, file, both, off
Format string // text, json
Level string
Path string // file; relative to Dir
Security string // security log file; relative to Dir
Dir string
MaxSize int // MB
MaxFiles int
MaxDays int
// Memory keeps the last entries in memory (npc SDK, a log viewer).
Memory int
Compress bool
// Service: a service has no console, so stdout means the file.
Service bool
// Secrets writes keys and passwords in lines, for development
// (slogx.Config.LogSecrets).
Secrets bool
// Instance, when set, is written as instance= on every line.
Instance string
}
Options are the log settings as nps.conf and the npc flags give them.
Click to show internal directories.
Click to hide internal directories.