logger

package
v0.0.0-...-e34fb4d Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2022 License: GPL-3.0 Imports: 5 Imported by: 6

Documentation

Overview

Package logger provides optional debug logging of the Signal library.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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.

Types

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
y or Y : Canonical URL