logging

package
v0.0.0-...-8a04328 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2018 License: GPL-3.0, GPL-3.0-only Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const LOG_FILE_NAME = "log.log"

LOG_FILE_NAME is the filename to log to

Variables

This section is empty.

Functions

func GetLogger

func GetLogger() *zap.Logger

GetLogger returns the logger to use in the entire suluvir application

func LogMiddleWare

func LogMiddleWare(next http.Handler) http.Handler

LogMiddleWare is a middleware for logging the time of all requests. It is exported because we need to register it in the `web` package to avoid an import cycle

Types

This section is empty.

Jump to

Keyboard shortcuts

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