ackyLog

package module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 29, 2021 License: GPL-3.0 Imports: 10 Imported by: 0

README

ackyLog

A few extra bells and whistles on standard logging in Go

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ColourMap = map[string]string{
	"F-BLACK":   "\033[1;30m",
	"F-RED":     "\033[1;31m",
	"F-GREEN":   "\033[1;32m",
	"F-YELLOW":  "\033[1;33m",
	"F-BLUE":    "\033[1;34m",
	"F-MAGENTA": "\033[1;35m",
	"F-CYAN":    "\033[1;36m",
	"F-WHITE":   "\033[1;37m",
	"F-NORMAL":  "\033[0;37m",
	"F-RESET":   "\033[0m",
	"B-BLACK":   "\033[1;40m",
	"B-RED":     "\033[1;41m",
	"B-GREEN":   "\033[1;42m",
	"B-YELLOW":  "\033[1;43m",
	"B-BLUE":    "\033[1;44m",
	"B-MAGENTA": "\033[1;45m",
	"B-CYAN":    "\033[1;46m",
	"B-WHITE":   "\033[1;47m",
}

TODO: Put all the Colours this. I'd like more options but not to the point of Remember a ton of colours. Like this https://gist.github.com/RabaDabaDoba/145049536f815903c79944599c6f952a

View Source
var SHOWCOLOURS = true

Functions

func DEBUG

func DEBUG(Message string, variables ...interface{})

func ERROR

func ERROR(Message string, variables ...interface{})

func INFO

func INFO(Message string, variables ...interface{})

func SPEW

func SPEW(variables ...interface{})

func TIMED

func TIMED(Message string, variables ...interface{}) func()

func WARNING

func WARNING(Message string, variables ...interface{})

func WEB

func WEB(Message string, r *http.Request, variables ...interface{})

func WEBFORM

func WEBFORM(Message string, r *http.Request, variables ...interface{})

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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