log

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

package log is a wrapper around colorizing the log output. It has functions that allow you to simply write output to the screen for various scenarios.

- Successful ==> Green

- Info ==> Cyan

- Warn ==> Yellow

- Error ==> Red

- Fatal ==> Red

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Error

func Error(format string, a ...any)

Error prints a message to the terminal in the color red.

func Fatal

func Fatal(format string, a ...any)

Fatal prints a message to the terminal in the color red, then exits with error.

func Info

func Info(format string, a ...any)

Info prints a message to the terminal in the color cyan.

func Message

func Message(format string, a ...any)

Message simply prints a message to the terminal.

func Start

func Start(format string, a ...any)

Start prints a message to the terminal in the color green.

func Success

func Success(format string, a ...any)

Success prints a message to the terminal in the color green.

func Verbose

func Verbose(v bool, format string, a ...any)

Verbose is a log wrapper.

func Warn

func Warn(format string, a ...any)

Warn prints a message to the terminal in the color yellow.

Types

This section is empty.

Jump to

Keyboard shortcuts

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