package
module
Version:
v1.0.16
Opens a new window with list of versions in this module.
Published: Apr 10, 2024
License: BSD-3-Clause
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
README
¶
sak
A simple logging module for Go. The design is meant to be as simple as humanly possible.
I use it. You may. Or may not. It's chock-full of my own solecisms, subject to evolution as needed.
Documentation
¶
func LOG(n int, msgs ...interface{})
type LogEntry struct {
Time time.Time `json:"time"`
Level int `json:"logLevel"`
Facility string `json:"facility"`
Severity string `json:"severity"`
Code string `json:"code"`
Msg string `json:"message"`
OutputStr string `json:"outputstr"`
Printed bool `json:"printed"`
}
type LogInterface interface {
Logify() string
}
type Options struct {
DebugLevel int
MaxLogHist int64
Behavior struct {
PrintTime bool
TimeMilli bool
Filter []string
LogShiftBuffer int
}
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.