package
module
Version:
v0.0.0-...-9e57764
Opens a new window with list of versions in this module.
Published: Jun 1, 2020
License: MIT
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 3
Opens a new window with list of known importers.
Documentation
¶
Package logs provide some simple 'prettier' logs for a basic go usage
Debug function logs a debug message
func Error(err ...interface{})
ErrorCrash function logs an error
func ErrorCrash(err interface{})
ErrorCrash function is fired upon a crash and logs us where the crash occurs
func Info(info interface{})
Info function logs an info message
func Pretty(variable ...interface{})
Pretty function disasemble a variable and display it's struct and values
Route function gives us the current route used, with the number of current
goroutines and the IP of the caller
func Success(success interface{})
Success function logs a success message
func Warning(warning interface{})
Warning function logs a warning message
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
Source Files
¶
Click to show internal directories.
Click to hide internal directories.