verbosity

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package verbosity is a plugin of launchr to configure log level of the app.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogFormat added in v0.16.0

type LogFormat string

LogFormat is a enum type for log output format.

const (
	LogFormatPlain LogFormat = "plain" // LogFormatPlain is a default logger output format.
	LogFormatJSON  LogFormat = "json"  // LogFormatJSON is a json logger output format.
)

func (*LogFormat) Set added in v0.16.0

func (e *LogFormat) Set(v string) error

Set implements [cobra.Value] interface.

func (*LogFormat) String added in v0.16.0

func (e *LogFormat) String() string

Set implements fmt.Stringer interface.

func (*LogFormat) Type added in v0.16.0

func (e *LogFormat) Type() string

Type implements [cobra.Value] interface.

type Plugin

type Plugin struct{}

Plugin is launchr.Plugin to set verbosity of the application.

func (Plugin) OnAppInit added in v0.16.0

func (p Plugin) OnAppInit(app launchr.App) error

OnAppInit implements launchr.OnAppInitPlugin interface.

func (Plugin) PluginInfo

func (p Plugin) PluginInfo() launchr.PluginInfo

PluginInfo implements launchr.Plugin interface.

Jump to

Keyboard shortcuts

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