Versions in this module Expand all Collapse all v0 v0.0.5 Dec 31, 2021 v0.0.4 Nov 21, 2021 v0.0.3 Oct 26, 2021 v0.0.2 Oct 11, 2021 Changes in this version + var FluxMonitor = "fluxmonitor" + var HeadTracker = "head_tracker" + func Debug(args ...interface{}) + func Debugf(format string, values ...interface{}) + func Debugw(msg string, keysAndValues ...interface{}) + func Error(args ...interface{}) + func ErrorIf(err error, optionalMsg ...string) + func ErrorIfCalling(f func() error, optionalMsg ...string) + func Errorf(format string, values ...interface{}) + func Errorw(msg string, keysAndValues ...interface{}) + func Fatal(args ...interface{}) + func Fatalf(format string, values ...interface{}) + func Fatalw(msg string, keysAndValues ...interface{}) + func GetLogServices() []string + func Info(args ...interface{}) + func Infof(format string, values ...interface{}) + func Infow(msg string, keysAndValues ...interface{}) + func NewErrorw(msg string, keysAndValues ...interface{}) error + func NewORM(db *gorm.DB) *orm + func NewProductionConfig(lvl zapcore.Level, dir string, jsonConsole, toDisk bool) (c zap.Config) + func NewProductionEncoderConfig() zapcore.EncoderConfig + func Panic(args ...interface{}) + func PanicIf(err error) + func Panicf(format string, values ...interface{}) + func SetLogger(newLogger *Logger) + func Sync() error + func Trace(args ...interface{}) + func Tracef(format string, values ...interface{}) + func Tracew(msg string, keysAndValues ...interface{}) + func Warn(args ...interface{}) + func WarnIf(err error) + func Warnf(format string, values ...interface{}) + func Warnw(msg string, keysAndValues ...interface{}) + type LogConfig struct + CreatedAt time.Time + ID int64 + LogLevel string + ServiceName string + UpdatedAt time.Time + type Logger struct + Orm ORM + var Default *Logger + func CreateLogger(zl *zap.SugaredLogger) *Logger + func CreateLoggerWithConfig(zl *zap.SugaredLogger, lvl zapcore.Level, dir string, jsonConsole bool, ...) *Logger + func CreateMemoryTestLogger(lvl zapcore.Level) *Logger + func CreateProductionLogger(dir string, jsonConsole bool, lvl zapcore.Level, toDisk bool) *Logger + func CreateTestLogger(lvl zapcore.Level) *Logger + func (l *Logger) ErrorIf(err error, optionalMsg ...string) + func (l *Logger) ErrorIfCalling(f func() error, optionalMsg ...string) + func (l *Logger) GetServiceLogLevels() (map[string]string, error) + func (l *Logger) InitServiceLevelLogger(serviceName string, logLevel string) (*Logger, error) + func (l *Logger) PanicIf(err error) + func (l *Logger) ServiceLogLevel(serviceName string) (string, error) + func (l *Logger) SetDB(db *gorm.DB) + func (l *Logger) WarnIf(err error) + func (l *Logger) Write(b []byte) (int, error) + type MemorySink struct + func MemoryLogTestingOnly() *MemorySink + func (s *MemorySink) Close() error + func (s *MemorySink) String() string + func (s *MemorySink) Sync() error + func (s *MemorySink) Write(p []byte) (n int, err error) + type ORM interface + GetServiceLogLevel func(serviceName string) (string, error) + SetServiceLogLevel func(ctx context.Context, serviceName string, level zapcore.Level) error + type PrettyConsole struct + func (pc PrettyConsole) Write(b []byte) (int, error)