dlog

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplicationLogger added in v0.4.1

func ApplicationLogger(component string) (*zap.SugaredLogger, error)

ApplicationLogger returns logger for applications

func FunctionsLogger added in v0.4.1

func FunctionsLogger() (*zap.SugaredLogger, error)

FunctionsLogger returns logger for functions

func NewHTTPSink added in v0.4.1

func NewHTTPSink(url *url.URL) (zap.Sink, error)

NewHTTPSink write logs to http / fluentbit

Types

type HTTPWriter added in v0.4.1

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

HTTPWriter interface implementation

func (*HTTPWriter) Close added in v0.4.1

func (tw *HTTPWriter) Close() error

Close interface implementation

func (*HTTPWriter) Sync added in v0.4.1

func (tw *HTTPWriter) Sync() error

Sync interface implementation

func (*HTTPWriter) Write added in v0.4.1

func (tw *HTTPWriter) Write(p []byte) (int, error)

Write interface implementation

Jump to

Keyboard shortcuts

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