Documentation ¶
Index ¶
Constants ¶
View Source
const IDKey string = "centralog_id"
Variables ¶
This section is empty.
Functions ¶
func InitLoggerWithOpt ¶
func InitLoggerWithOpt(conf zap.Config, opts *LogOptions) error
Types ¶
type ChainLogger ¶
type ChainLogger struct {
// contains filtered or unexported fields
}
func Debug ¶
func Debug(msg string) *ChainLogger
func Error ¶
func Error(msg string) *ChainLogger
func Info ¶
func Info(msg string) *ChainLogger
func Warn ¶
func Warn(msg string) *ChainLogger
func (*ChainLogger) Any ¶
func (cl *ChainLogger) Any(key string, val interface{}) *ChainLogger
func (*ChainLogger) CtxID ¶
func (cl *ChainLogger) CtxID(ctx context.Context) *ChainLogger
func (*ChainLogger) Log ¶
func (cl *ChainLogger) Log()
type LogOptions ¶
Click to show internal directories.
Click to hide internal directories.