infolog

package module
v0.0.0-...-f4c341f Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2018 License: MIT Imports: 5 Imported by: 0

README

infolog

Golang loglevels

For more info and usage please refer to : https://medium.com/@vivek.dasgupta/level-based-logging-in-golang-4bef69098695

Documentation

Index

Constants

View Source
const (
	PANIC = 0
	ERROR = 1
	WARN  = 2
	INFO  = 3
	DEBUG = 4
)

Variables

View Source
var Loglevel int

Functions

func Log

func Log(level int, msg string, val ...interface{})

func StoreLog

func StoreLog(bucketname string, bucketkey string) (err error)

Types

type LogConfig

type LogConfig struct {
	Level         int
	Logfilepath   string
	Logfilehandle *os.File
	Logbucket     string
	Logbucketkey  string
	S3session     *s3.S3
}
var Logconf LogConfig

Jump to

Keyboard shortcuts

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