zap

package
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 5, 2020 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Setup

func Setup() benchmark.Setup

Setup defines the zap logger setup

Types

type MemorySink

type MemorySink struct {
	// contains filtered or unexported fields
}

MemorySink implements zap.Sink by writing all messages to a buffer.

func (*MemorySink) Close

func (s *MemorySink) Close() error

Close implements the Sink interface

func (*MemorySink) Read

func (s *MemorySink) Read(data []byte) (int, error)

Read implements the io.ReadWriter interface

func (*MemorySink) SetOut

func (s *MemorySink) SetOut(out io.ReadWriter) error

SetOut atomically sets the output read-writer

func (*MemorySink) Sync

func (s *MemorySink) Sync() error

Sync implements the Sink interface

func (*MemorySink) Write

func (s *MemorySink) Write(data []byte) (int, error)

Write implements the Sink interface

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL