log

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2020 License: Apache-2.0 Imports: 5 Imported by: 2

Documentation

Index

Constants

View Source
const (
	// Log absolutely nothing
	LOGLEVEL_NONE int = iota
	// Log situations that are not expected to happen and
	// are difficult to handle (e.g. by closing the connection without further consideration)
	LOGLEVEL_ERRORS
	// Log non-critical situations that might happen, but shouldn't (e.g. returning STATUS_NOT_FOUND)
	LOGLEVEL_WARNINGS
	// Log situations that are expected, but important for the operation
	LOGLEVEL_INFO
	// Log everything
	LOGLEVEL_DEBUG
)

Variables

This section is empty.

Functions

func CRPC_log

func CRPC_log(ll int, what ...interface{})

func GetLogToken

func GetLogToken() string

Returns a short random alphanumeric string. This is used to assign special tokens to RPCs in order to track them across log lines.

func IsLoggingEnabled

func IsLoggingEnabled(ll int) bool

Performance-enhancer: Prevent unnecessary log calls

func SetLoglevel

func SetLoglevel(ll int)

Set the global RPC log level

Types

This section is empty.

Jump to

Keyboard shortcuts

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