Versions in this module Expand all Collapse all v0 v0.1.2 Feb 20, 2021 v0.1.1 Sep 30, 2020 Changes in this version + func Init(options ...Option) error + type Format string + const AWS + const AZURE + const GCP + const JSON + const PRETTY + func ParseFormat(formatStr string) (Format, error) + type Logger interface + Init func(options ...Option) error + Options func() Options + String func() string + var DefaultLogger Logger + func NewLogger(opts ...Option) Logger + type Option func(*Options) + func EnableGrpcLog(val bool) Option + func ReportCaller() Option + func SetOption(k, v interface{}) Option + func WithFields(fields map[string]interface{}) Option + func WithFormat(format Format) Option + func WithLevel(level zerolog.Level) Option + func WithOutput(out io.Writer) Option + func WithTimeFormat(timeFormat string) Option + type Options struct + Context context.Context + EnableGrpcLog bool + Fields map[string]interface{} + Format Format + Level zerolog.Level + Out io.Writer + ReportCaller bool + TimeFormat string Other modules containing this package github.com/xmlking/toolkit/logger