Skip to content

Commit

Permalink
Add ByteString API
Browse files Browse the repository at this point in the history
This is a breaking change that adds a `AddByteString` to `zapcore.ObjectEncoder`, `AppendByteString` to `zapcore.PrimitiveArrayEncoder`.
This API optimizes logging UTF-8 encoded []byte data.

Fixes uber-go#324.
  • Loading branch information
skipor authored and Akshay Shah committed Mar 14, 2017
1 parent d060d5f commit 3337056
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion array_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,11 @@ import (
"testing"
"time"

"go.uber.org/zap/zapcore"

richErrors "github.com/pkg/errors"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"go.uber.org/zap/zapcore"
)

func BenchmarkBoolsArrayMarshaler(b *testing.B) {
Expand Down

0 comments on commit 3337056

Please sign in to comment.