func (l *HCLogAdapter) Log(level hclog.Level, msg string, args ...interface{}) {
	fields := []zapcore.Field{}
	for i := 0; i < len(args); i += 2 {
		fields = append(fields, zap.Any(args[i].(string), args[i+1]))
	}
	switch level {
	case hclog.Trace, hclog.Debug:
		l.zap.Debug(msg, fields...)
	case hclog.NoLevel, hclog.Info:
		l.zap.Info(msg, fields...)
	case hclog.Warn:
		l.zap.Warn(msg, fields...)
	case hclog.Error:
		l.zap.Error(msg, fields...)
	case hclog.Off:
		// do nothing
	}
}
// // Logger describes the interface that must be implemeted by all loggers.
// type Logger interface {
// 	// Args are alternating key, val pairs
// 	// keys must be strings
// 	// vals can be any type, but display is implementation specific
// 	// Emit a message and key/value pairs at a provided log level
Logger describes the interface that must be implemeted by all loggers.
type Logger interface {
Args are alternating key, val pairs
keys must be strings
vals can be any type, but display is implementation specific
Emit a message and key/value pairs at a provided log level
// // Logger describes the interface that must be implemeted by all loggers . // type Logger interface { // // Args are alternating key val pairs // // keys must be strings // // vals can be any type but display is implementation specific // // Emit a message and key / value pairs at a provided log level
func (l *HCLogAdapter) Log(level hclog.Level, msg string, args ...interface{}) {
	fields := []zapcore.Field{}
	for i := 0; i < len(args); i += 2 {
		fields = append(fields, zap.Any(args[i].(string), args[i+1]))
	}
	switch level {
	case hclog.Trace, hclog.Debug:
		l.zap.Debug(msg, fields...)
	case hclog.NoLevel, hclog.Info:
		l.zap.Info(msg, fields...)
	case hclog.Warn:
		l.zap.Warn(msg, fields...)
	case hclog.Error:
		l.zap.Error(msg, fields...)
	case hclog.Off:
	}
}
func ( l * HCLogAdapter ) Log ( level hclog . Level , msg string , args ... interface { } ) { fields := [ ] zapcore . Field { } for i := 0 ; i < len ( args ) ; i += 2 { fields = append ( fields , zap . Any ( args [ i ] . ( string ) , args [ i + 1 ] ) ) } switch level { case hclog . Trace , hclog . Debug : l . zap . Debug ( msg , fields ... ) case hclog . NoLevel , hclog . Info : l . zap . Info ( msg , fields ... ) case hclog . Warn : l . zap . Warn ( msg , fields ... ) case hclog . Error : l . zap . Error ( msg , fields ... ) case hclog . Off : } }
Logger describes the interface that must be implemeted by all loggers.
Logger describes the interface that must be implemeted by all loggers .
// do nothing