inspector_zap

package
v0.0.0-...-3f24f47 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ISO8601TimeEncoder

func ISO8601TimeEncoder(t time.Time, enc zapcore.PrimitiveArrayEncoder)

ISO8601TimeEncoder serializes a time.Time to an ISO8601-formatted string with millisecond precision. Same as t.Format("2006-01-02T15:04:05.000Z").

It optimized at byte slice level, faster than time.Format.

func NewLogger

func NewLogger(traceLevel protocol.TraceMode, opts ...zap.Option) inspector.Logger

NewLogger returns a new Logger which implemented Language Server Protocol Inspector specification log format.

Types

This section is empty.

Jump to

Keyboard shortcuts

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