internal

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Debug = newConditionalLogger(os.Stdout, "go-hbci: ", debugFlags, &debugMode)

Debug is a logger which logs when debugMode is enabled. If disabled, it executes a noop

View Source
var Info = newConditionalLogger(os.Stdout, "go-hbci: ", log.LstdFlags, &infoMode)

Info is a logger which logs when infoMode is enabled. If disabled, it executes a noop

Functions

func DebugMode

func DebugMode() bool

DebugMode returns true if debugMode is set, false otherwise

func InfoLog

func InfoLog() bool

InfoLog returns true if logging to info level is enabled, false otherwise

func SetDebugMode

func SetDebugMode(debug bool)

SetDebugMode sets the debug mode

func SetInfoLog

func SetInfoLog(info bool)

SetInfoLog sets whether the info log should be enabled

func WithDebugLogging

func WithDebugLogging(fn func())

WithDebugLogging enables debug logging for the given function fn

Types

This section is empty.

Jump to

Keyboard shortcuts

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