log

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: May 30, 2023 License: MIT Imports: 6 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DEBUG bool = false

Functions

This section is empty.

Types

type Log

type Log struct {
	*_log.Logger
	// contains filtered or unexported fields
}

func NewLog

func NewLog(prefix string) *Log

func (*Log) Debug

func (d *Log) Debug(message string, args ...any)

Console Debug Debug.

func (*Log) Default

func (d *Log) Default(message string, args ...any)

Console log Default.

func (*Log) Error

func (d *Log) Error(message string, args ...any)

Console log Error.

func (*Log) Fatal

func (d *Log) Fatal(message string, args ...any)

Console log Fatal.

func (*Log) Info

func (d *Log) Info(message string, args ...any)

Console log Info.

func (*Log) Prefix

func (d *Log) Prefix() string

Prefix returns the output prefix for the logger.

func (*Log) Println

func (d *Log) Println(message string, args ...any)

Console log Println.

func (*Log) Question

func (d *Log) Question(message string, args ...any)

Console log Secondary.

func (*Log) Secondary

func (d *Log) Secondary(message string, args ...any)

Console log Secondary.

func (*Log) SetPrefix

func (d *Log) SetPrefix(prefix string)

SetPrefix sets the output prefix for the logger.

func (*Log) Success

func (d *Log) Success(message string, args ...any)

Console log Success.

func (*Log) Warning

func (d *Log) Warning(message string, args ...any)

Console log Warning.

Jump to

Keyboard shortcuts

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