Documentation ¶
Index ¶
- Constants
- Variables
- func Debug(msg string, fields ...Field)
- func Error(msg string, fields ...Field)
- func Fatal(msg string, fields ...Field)
- func Info(msg string, fields ...Field)
- func Init(config Config)
- func New(cfg Config) *ronyLogger
- func NewSentryCore(sentryDSN, release, environment string, level zapcore.Level, ...) zapcore.Core
- func SetLevel(level Level)
- func Warn(msg string, fields ...Field)
- type CheckedEntry
- type Config
- type Field
- type FieldType
- type Level
- type Logger
- type SugaredLogger
Constants ¶
View Source
const ( DebugLevel = zapcore.DebugLevel InfoLevel = zapcore.InfoLevel WarnLevel = zapcore.WarnLevel ErrorLevel = zapcore.ErrorLevel FatalLevel = zapcore.FatalLevel )
Variables ¶
View Source
var DefaultConfig = Config{ Level: InfoLevel, DirPath: ".", Filename: "", FileLevel: WarnLevel, SentryDSN: "", SentryLevel: WarnLevel, Release: "", Environment: "", SkipCaller: 2, }
View Source
var (
DefaultLogger *ronyLogger
)
Functions ¶
func NewSentryCore ¶
Types ¶
type CheckedEntry ¶
type CheckedEntry = zapcore.CheckedEntry
func Check ¶
func Check(level Level, msg string) *CheckedEntry
type SugaredLogger ¶
type SugaredLogger interface { Debugf(template string, args ...interface{}) Infof(template string, args ...interface{}) Printf(template string, args ...interface{}) Warnf(template string, args ...interface{}) Errorf(template string, args ...interface{}) Fatalf(template string, args ...interface{}) Debug(args ...interface{}) Info(args ...interface{}) Warn(args ...interface{}) Error(args ...interface{}) Fatal(args ...interface{}) Panic(args ...interface{}) }
Click to show internal directories.
Click to hide internal directories.