|
|
|
@ -16,7 +16,6 @@ import ( |
|
|
|
|
// Logger see more detail https://github.com/aliyun/aliyun-log-go-sdk
|
|
|
|
|
type Logger interface { |
|
|
|
|
log.Logger |
|
|
|
|
|
|
|
|
|
GetProducer() *producer.Producer |
|
|
|
|
Close() error |
|
|
|
|
} |
|
|
|
@ -82,7 +81,6 @@ func (a *aliyunLog) Close() error { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (a *aliyunLog) Log(level log.Level, keyvals ...interface{}) error { |
|
|
|
|
|
|
|
|
|
contents := make([]*sls.LogContent, 0, len(keyvals)/2+1) |
|
|
|
|
if (len(keyvals) & 1) == 1 { |
|
|
|
|
keyvals = append(keyvals, "KEYVALS UNPAIRED") |
|
|
|
|