logs

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2019 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Overview

Package logs output logs and advanced debug information

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DebugLog

func DebugLog(args ...interface{})

DebugLog output formated(function and line calls) debug information

func ErrorLog

func ErrorLog(err error, args ...interface{})

ErrorLog - output formatted (function and line calls) error information

func ErrorLogHandler

func ErrorLogHandler(err error, args ...interface{})

ErrorLogHandler - output formated(function and line calls) error information

func ErrorStack

func ErrorStack(err error, args ...interface{})

ErrorStack - output formatted(function and line calls) error runtime stack information

func Fatal

func Fatal(err error, args ...interface{})

Fatal - output formated (function and line calls) fatal information

func NewWrapKitLogger

func NewWrapKitLogger(pref string, depth int) *wrapKitLogger

func NewlogMess

func NewlogMess(mess string, logger *wrapKitLogger) *logMess

func SetDebug

func SetDebug(d bool) bool

SetDebug set debug level for log, return old value

func SetStackBeginWith

func SetStackBeginWith(s int) int

SetStackBeginWith set stackBeginWith level for log, return old value

func SetStatus

func SetStatus(s bool) bool

SetStatus set status level for log, return old value

func StatusLog

func StatusLog(args ...interface{})

StatusLog output formated information for status

func TraceLog

func TraceLog(args ...interface{})

DebugLog output formated(function and line calls) debug information

Types

type Level

type Level int
const (
	CRITICAL Level = iota
	ERROR
	WARNING
	NOTICE
	INFO
	DEBUG
)

type LogsType

type LogsType interface {
	PrintToLogs() string
}

LogsType - interface for print logs record

Jump to

Keyboard shortcuts

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