nanoapilog

package module
v0.0.0-...-8d68b3f Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2022 License: MIT Imports: 2 Imported by: 2

README

nanoapi-log

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Debug func(s string, p ...interface{}) = func(s string, p ...interface{}) {
	log.Printf("DEBUG: "+s, p...)
}
View Source
var Err func(s string, p ...interface{}) = func(s string, p ...interface{}) {
	stack := debug.Stack()
	p = append(p, string(stack))
	log.Printf("ERROR: "+s+"\nSTACK: %s", p...)
}
View Source
var Log func(s string, p ...interface{}) = func(s string, p ...interface{}) {
	log.Printf(s, p...)
}

Functions

func SetupLog

func SetupLog() error

Types

This section is empty.

Jump to

Keyboard shortcuts

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