Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Config *types.ConfigFile
View Source
var DB *bolt_api.DB
View Source
var Encrypting bool
View Source
var Location *time.Location
View Source
var LogKeyBytes []byte
Functions ¶
func FormatTime ¶
func ItoB ¶ added in v1.1.4
https://github.com/boltdb/bolt#autoincrementing-integer-for-the-bucket itob returns an 8-byte big endian representation of v.
Types ¶
type CustomJSONFormatter ¶
type CustomJSONFormatter struct {
logrus.JSONFormatter
}
type CustomLogrusWriter ¶
type CustomTextFormatter ¶
type CustomTextFormatter struct {
logrus.TextFormatter
}
func (*CustomTextFormatter) Format ¶
func (f *CustomTextFormatter) Format(entry *logrus.Entry) (result_bytes []byte, result_error error)
https://github.com/sirupsen/logrus/blob/v1.9.3/entry.go#L44 https://pkg.go.dev/github.com/sirupsen/logrus#Entry
type Wrapper ¶ added in v1.1.9
var Log *Wrapper
var Log *logrus.Logger
func New ¶
func New(config *types.ConfigFile) *Wrapper
so apparently The limitation arises due to the Go language's initialization order: Package-level variables are initialized before main() is called. Functions in main() execute after package-level initializations. something something , singleton func GetLogger( config *types.ConfigFile ) *logrus.Logger {
func (*Wrapper) FormatTime ¶ added in v1.1.9
func (*Wrapper) GetFormattedTimeString ¶ added in v1.1.9
func (*Wrapper) GetFormattedTimeStringOBJ ¶ added in v1.1.9
func (*Wrapper) GetMessages ¶ added in v1.1.10
Click to show internal directories.
Click to hide internal directories.