log

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const TimeFormat = "3:04:05.000 PM"

Variables

This section is empty.

Functions

func ClearLogs

func ClearLogs()

ClearLogs clears the console.

func Debugf

func Debugf(f string, v ...any)

Debugf prints an info line to console.

func Durf

func Durf(msg string, d time.Duration)

Durf prints an error.

func Error

func Error(msg string)

Errorf prints an error line to console.

func Errorf

func Errorf(f string, v ...any)

Errorf is similar to Error but with formatting.

func Fatalf

func Fatalf(f string, v ...any)

Fatalf prints an error line to console and exits process with error code 1.

func Infof

func Infof(f string, v ...any)

Infof prints an info line to console.

func SetLogLevel

func SetLogLevel(l LogLevel)

func TemplierFileChange

func TemplierFileChange(e fsnotify.Event)

TemplierFileChange prints a file change log to console.

func TemplierRestartingServer

func TemplierRestartingServer(cmdServerPath string)

TemplierRestartingServer prints the server restart trigger log to console.

func TemplierStarted

func TemplierStarted(baseURL string)

TemplierStarted prints the Templiér started log to console.

Types

type LogLevel

type LogLevel int32
const (
	LogLevelErrOnly LogLevel = 0
	LogLevelVerbose LogLevel = 1
	LogLevelDebug   LogLevel = 2
)

func Level

func Level() LogLevel

Jump to

Keyboard shortcuts

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