apex

package module
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(opts ...log.Option) log.Logger

New returns a new ApexLogger instance.

func WithCLIHandler

func WithCLIHandler() log.Option

WithCLIHandler sets the CLI Handler for Log Output.

func WithHandler

func WithHandler(handler apexLog.Handler) log.Option

WithHandler allows to set a customHandler for Log Output.

func WithJSONHandler

func WithJSONHandler() log.Option

WithJSONHandler sets the JSON Handler for Log Output.

func WithLevel

func WithLevel(level log.Level) log.Option

WithLevel allows to set the level for Log Output.

func WithTextHandler

func WithTextHandler() log.Option

WithTextHandler sets the Text Handler for Log Output.

Types

type Options

type Options struct {
	log.Options
}

Options is used when applying custom options.

Jump to

Keyboard shortcuts

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