Versions in this module Expand all Collapse all v1 v1.8.1 Jun 27, 2022 v1.8.0 Jun 8, 2022 v1.7.0 Apr 14, 2022 Changes in this version type Logger + func (l *Logger) PauseMgo() + func (l *Logger) ResumeMgo() v1.6.1 Nov 3, 2021 Changes in this version type Entries + Extr bool v1.6.0 Aug 12, 2021 Changes in this version + type Entries struct + Data []Entry + ShowNode bool + func Get(cn *mongo.Collection, r *LogRequest, limit int64, exactSeverity bool) (*Entries, error) + func (e Entries) MarshalJSON() ([]byte, error) + func (e Entries) String() (s string) + type Entry struct + Msg string + ObjID primitive.ObjectID + TS int64 + TZone int + Time string + Tns int + func (e *Entry) String() (s string) + func (e *Entry) StringNode() (s string) v1.5.0 May 11, 2021 v1.4.1 Jan 27, 2021 v1.4.0 Dec 23, 2020 Changes in this version + const LogTimeFormat + type Event struct + func (e *Event) Debug(msg string, args ...interface{}) + func (e *Event) Error(msg string, args ...interface{}) + func (e *Event) Fatal(msg string, args ...interface{}) + func (e *Event) Info(msg string, args ...interface{}) + func (e *Event) Warning(msg string, args ...interface{}) + type LogEntry struct + Msg string + ObjID primitive.ObjectID + TS int64 + TZone int + Time string + Tns int + func (e *LogEntry) String() (s string) + func (e *LogEntry) StringNode() (s string) + type LogKeys struct + Epoch primitive.Timestamp + Event string + Node string + OPID string + ObjName string + RS string + Severity Severity + type LogRequest struct + TimeMax time.Time + TimeMin time.Time + type Logger struct + func New(cn *mongo.Collection, rs, node string) *Logger + func (l *Logger) Debug(event string, obj, opid string, epoch primitive.Timestamp, msg string, ...) + func (l *Logger) Error(event string, obj, opid string, epoch primitive.Timestamp, msg string, ...) + func (l *Logger) Fatal(event string, obj, opid string, epoch primitive.Timestamp, msg string, ...) + func (l *Logger) Get(r *LogRequest, limit int64, exactSeverity bool) ([]LogEntry, error) + func (l *Logger) Info(event string, obj, opid string, epoch primitive.Timestamp, msg string, ...) + func (l *Logger) NewEvent(typ, name, opid string, epoch primitive.Timestamp) *Event + func (l *Logger) Output(e *LogEntry) error + func (l *Logger) PrintLogs(to io.Writer, f OutFormat, r *LogRequest, limit int64, showNode bool) error + func (l *Logger) Printf(msg string, args ...interface{}) + func (l *Logger) SetOut(w io.Writer) + func (l *Logger) Warning(event string, obj, opid string, epoch primitive.Timestamp, msg string, ...) + type OutFormat int + const FormatJSON + const FormatText + type Severity int + const Debug + const Error + const Fatal + const Info + const Warning + func (s Severity) String() string