|
|
@ -60,10 +60,10 @@ func newConfig(opts ...Option) *config {
|
|
|
|
opt.apply(cfg)
|
|
|
|
opt.apply(cfg)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if !cfg.hasPool {
|
|
|
|
if !cfg.hasPool {
|
|
|
|
cfg.bytesBufferPool = newBytesBufferPool(512, 4096)
|
|
|
|
cfg.bytesBufferPool = NewBytesBufferPool(512, 4096)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if cfg.output == nil {
|
|
|
|
if cfg.output == nil {
|
|
|
|
cfg.output = newSyncWriter(os.Stderr)
|
|
|
|
cfg.output = NewSyncWriter(os.Stderr)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if cfg.timestampFormat == "" {
|
|
|
|
if cfg.timestampFormat == "" {
|
|
|
|
cfg.timestampFormat = time.RFC3339Nano
|
|
|
|
cfg.timestampFormat = time.RFC3339Nano
|
|
|
|