Version: v0.0.0-...-d09bcab Latest Latest

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

Go to latest
Published: Apr 14, 2017 License: GPL-3.0 Imports: 5 Imported by: 10



Package logger provides optional debug logging of the Signal library.



This section is empty.


This section is empty.


func Configure

func Configure(settings string)

Configure allows arbitrary logger configuration settings. The default logger uses this method to configure what Go files are allowed to log.

func Debug

func Debug(msg ...interface{})

Debug prints debug level logs.

func Error

func Error(msg ...interface{})

Error prints error level logs.

func Info

func Info(msg ...interface{})

Info prints info level logs.

func Setup

func Setup(logger *Loggable)

Setup will configure the shared logger to use the provided logger.

func Warning

func Warning(msg ...interface{})

Warning prints warning level logs.


type Loggable

type Loggable interface {
	Debug(caller, message string)
	Info(caller, message string)
	Warning(caller, message string)
	Error(caller, message string)
	Configure(settings string)

Loggable is an interface for logging.

var Logger Loggable

Logger is a shared loggable interface that this library will use for all log messages.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL