logger

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

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

Go to latest
Published: Aug 6, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package logger implements utilities to instantiate and manipulate a new logger

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StandardLogger

type StandardLogger struct {
	*logrus.Logger
}

StandardLogger is a representation of logrus logger

func NewLogger

func NewLogger() *StandardLogger

NewLogger method to initialize logger

func (*StandardLogger) SetLogFolder

func (sl *StandardLogger) SetLogFolder(logDirPath string)

SetLogFolder sets the output folder

func (*StandardLogger) SetLogLevel

func (sl *StandardLogger) SetLogLevel(level string)

SetLogLevel changes the log verbosity

Jump to

Keyboard shortcuts

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