Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // RootLoggerName - Root logger name, contains all log data RootLoggerName = "root" // RootLogger - Root Logger RootLogger = rootLogger() )
View Source
var (
// AuditLogger - Single audit log
AuditLogger = newAuditLogger()
)
Functions ¶
func GetRootAppDir ¶
func GetRootAppDir() string
GetRootAppDir - Get the Sliver app dir, default is: ~/.sliver/
func NamedLogger ¶
NamedLogger - Returns a logger wrapped with pkg/stream fields
Types ¶
type StdoutHook ¶
type StdoutHook struct { Name string // contains filtered or unexported fields }
TxtHook - Hook in a textual version of the logs
func NewStdoutHook ¶
func NewStdoutHook(name string) *StdoutHook
NewTxtHook - returns a new txt hook
func (*StdoutHook) Fire ¶
func (hook *StdoutHook) Fire(entry *logrus.Entry) error
Fire - Implements the fire method of the Logrus hook
func (*StdoutHook) Levels ¶
func (hook *StdoutHook) Levels() []logrus.Level
Levels - Hook all levels
Click to show internal directories.
Click to hide internal directories.