utils

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Copyright © 2023 Jake Rogers <code@supportoss.org>

Index

Constants

View Source
const (
	DefaultLogLevel = zerolog.ErrorLevel
)

Variables

Functions

func Logger

func Logger(level zerolog.Level) zerolog.Logger

Logger returns a zerolog logger with a console writer.

func SetLogLevel

func SetLogLevel(cmd *cobra.Command, args []string)

SetLogLevel sets the log level based on the number of times the verbose flag is used.

Types

This section is empty.

Jump to

Keyboard shortcuts

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