in go/trace.go [117:132]
func (c *DriverTracer) Log(lvl zapcore.Level, msg string, fields ...zap.Field) {
if !c.config.IsLoggingEnabled() {
return
}
switch lvl {
case DebugLevel:
c.logger.Debug(msg, fields...)
case WarnLevel:
c.logger.Warn(msg, fields...)
case InfoLevel:
c.logger.Info(msg, fields...)
case ErrorLevel, zap.DPanicLevel, zap.PanicLevel, zap.FatalLevel:
c.logger.Error(msg, fields...)
}
}