logger

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package logger provides color coded log messages with error handling

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BlueText

func BlueText(msg ...string) string

BlueText returns string with blur foreground color

func Error

func Error(err error, msg ...string)

Error logs message with red colored prefix if `err != nil`

func Fatal

func Fatal(err error, msg ...string)

Fatal logs message with red colored prefix and exits the program if `err != nil`

func Info

func Info(msg ...string)

Info logs message with green colored prefix

func Warn

func Warn(msg ...string)

Warn logs message with yellow colored prefix

Types

This section is empty.

Jump to

Keyboard shortcuts

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