colorlog

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package colorlog has various Print functions that can be called to change the color of the text in standard out

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(msg string, keyvals ...interface{})

Debug logs a debug message with structured logging

func Error

func Error(msg string, keyvals ...interface{})

Error logs an error message with structured logging

func Fatal

func Fatal(msg string, keyvals ...interface{})

Fatal logs a fatal message and exits

func Info

func Info(msg string, keyvals ...interface{})

Info logs an info message with structured logging

func PrintError

func PrintError(msg any)

PrintError prints red colored text to standard out

func PrintErrorAndExit

func PrintErrorAndExit(msg any)

PrintErrorAndExit prints red colored text to standard out then exits 1

func PrintInfo

func PrintInfo(msg any)

PrintInfo prints yellow colored text to standard out

func PrintSubtleInfo

func PrintSubtleInfo(msg any)

PrintSubtleInfo prints magenta colored text to standard out

func PrintSuccess

func PrintSuccess(msg any)

PrintSuccess prints green colored text to standard out

func PrintWarning

func PrintWarning(msg any)

PrintWarning prints yellow colored text to standard out. Unlike PrintInfo, this is not suppressed by GHORG_QUIET.

func SetTimeFunction

func SetTimeFunction(f log.TimeFunction)

SetTimeFunction allows setting a custom time function (useful for testing)

func Warn

func Warn(msg string, keyvals ...interface{})

Warn logs a warning message with structured logging

Types

This section is empty.

Jump to

Keyboard shortcuts

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