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 Log *logrus.Logger
View Source
var LogKeyBytes []byte
Functions ¶
func FormatTime ¶
func GetMessages ¶ added in v1.1.2
func New ¶
func New(config *types.ConfigFile) *logrus.Logger
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 {
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
Click to show internal directories.
Click to hide internal directories.