mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-18 16:54:25 +08:00
add comments
This commit is contained in:
@@ -11,11 +11,13 @@ import (
|
||||
"github.com/mayswind/lab/pkg/utils"
|
||||
)
|
||||
|
||||
// LogFormatter represents a log formatter
|
||||
type LogFormatter struct {
|
||||
Prefix string
|
||||
DisableLevel bool
|
||||
}
|
||||
|
||||
// Format writes to log according to the log entry
|
||||
func (f *LogFormatter) Format(entry *logrus.Entry) ([]byte, error) {
|
||||
var b *bytes.Buffer
|
||||
|
||||
|
||||
Reference in New Issue
Block a user