Help us shape the future of Go! Take the 2026 Go Developer Survey

log

package
v0.16.10 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2025 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.

- Start ==> Blue

- Success ==> Green

- Info ==> Cyan

- Warn ==> Yellow

- Error ==> Red

- Fatal ==> Red (and exits the program)

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 blue.

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