logger

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package logger provides color coded log messages with error handling

Index

Constants

This section is empty.

Variables

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