logs

package module
v0.0.0-...-9e57764 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2020 License: MIT Imports: 9 Imported by: 2

Documentation

Overview

Package logs provide some simple 'prettier' logs for a basic go usage

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(debug string)

Debug function logs a debug message

func Error

func Error(err ...interface{})

ErrorCrash function logs an error

func ErrorCrash

func ErrorCrash(err interface{})

ErrorCrash function is fired upon a crash and logs us where the crash occurs

func Info

func Info(info interface{})

Info function logs an info message

func Pretty

func Pretty(variable ...interface{})

Pretty function disasemble a variable and display it's struct and values

func Route

func Route(r *http.Request)

Route function gives us the current route used, with the number of current goroutines and the IP of the caller

func Success

func Success(success interface{})

Success function logs a success message

func Warning

func Warning(warning interface{})

Warning function logs a warning message

func Webhook

func Webhook(name, field, item, verb string)

Webook function is fired when using a webhook (for Facebook for instance) and gives us the name of this webhook, the field, item and verb used

Types

This section is empty.

Jump to

Keyboard shortcuts

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