logger

package
v1.0.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const FileWritePermissionMode = 0644
View Source
const GenerateDirectoryPermissionMode = 0750

Variables

This section is empty.

Functions

func GetLogWriter

func GetLogWriter(logPrefix, logPath string) *io.Writer

GetLogWriter returns an writer interface. This can be used in the middleware.

func GetLogger

func GetLogger(logPrefix, logPath string) *log.Logger

GetLogger returns the logger object. It takes two input parameters. - logPrefix - it is a string used as Prefix on each log line - logPath - absolute path of the log file where the logs will be written

Types

This section is empty.

Jump to

Keyboard shortcuts

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