hlog

package
v0.0.0-...-bb893db Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const DEBUG = 5
View Source
const DETAILS = 4
View Source
const ERROR = 1
View Source
const EVENT = 3
View Source
const FATAL = 0

Log LEVEL's

View Source
const MAIN = 2
View Source
const MINOR = 6

Variables

View Source
var MAX_LVL_DB = MINOR
View Source
var MAX_LVL_TV = MINOR

Functions

func InitLogsDB

func InitLogsDB(tmpdb *mgo.Database, max_lvl_db int, max_lvl_tv int)

func SaveLog

func SaveLog(sender string, lvl int, v ...interface{})

Types

type Log

type Log struct {
	Info   string
	Date   time.Time
	Level  int
	Sender string
}

func GetLogs

func GetLogs(sender string, lvl int) []Log

Jump to

Keyboard shortcuts

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