logger

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Error

func Error(msg string)

Error is used to log error messages

func Fatal

func Fatal(msg string)

Fatal is used to log error messages and exit the process

func Info

func Info(msg string)

Info is used for logging information or updates

func Print

func Print(msg string)

Print exports a call to fmt.Print limited to type string

func Start

func Start(logs chan Log)

Start listens on a channel and executes log functions on that particular channel

func Welcome

func Welcome()

Welcome displays the welcome message for bird

Types

type Log

type Log struct {
	Message string
	Func    func(string)
}

Log is a struct to define the message and the function used to log the message of that type

Jump to

Keyboard shortcuts

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