internal

package
v0.0.0-...-5508b13 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

------------------------ Logger Setup------------------------ Default: - use output file with location ~/.sftppush/sftppush.log - log level: debug - format text

Define through config: - log level - custom log location - format json --------------------------------------------------------------

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLogger

func NewLogger(cfg *viper.Viper) (*logrus.Logger, string)

NewLogger returns a configured logrus instance

Types

type DefaultLog

type DefaultLog struct {
	Logger *logrus.Logger
}

DefaultLog returns the global logrus struct

Jump to

Keyboard shortcuts

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