utils

package
v0.0.0-...-10f03cb Latest Latest
Warning

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

Go to latest
Published: May 14, 2018 License: Apache-2.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

View Source
const (
	// AppName is the application's name
	AppName = "todolist"

	// LogStashFormatter is constant used to format logs as logstash format
	LogStashFormatter = "logstash"
	// TextFormatter is constant used to format logs as simple text format
	TextFormatter = "text"
)

Variables

This section is empty.

Functions

func InitLog

func InitLog(logLevel, formatter string) error

InitLog initializes the logrus logger

func TimeTrack

func TimeTrack(start time.Time, name string)

TimeTrack is used to log execution times for functions

Types

This section is empty.

Jump to

Keyboard shortcuts

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