Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Byte alignment, optimization from 96 to 80 byte #865

Merged
merged 2 commits into from Dec 11, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 5 additions & 4 deletions logger.go
Expand Up @@ -39,17 +39,18 @@ import (
// safety over brevity. For most applications, the SugaredLogger strikes a
// better balance between performance and ergonomics.
type Logger struct {
core zapcore.Core
onFatal zapcore.CheckWriteAction // default is WriteThenFatal

development bool
addCaller bool
core zapcore.Core

name string
errorOutput zapcore.WriteSyncer

addCaller bool
addStack zapcore.LevelEnabler
addStack zapcore.LevelEnabler

callerSkip int
onFatal zapcore.CheckWriteAction // default is WriteThenFatal
}

// New constructs a new Logger from the provided zapcore.Core and Options. If
Expand Down