log

package
v0.0.67 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: Apache-2.0, NCSA Imports: 3 Imported by: 0

Documentation

Overview

Package log provides semantic log functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Error

func Error(args ...any)

Error logs to the warning log.

func ErrorContext added in v0.0.65

func ErrorContext(ctx context.Context, args ...any)

ErrorContext logs to the informational log with a Context.

func ErrorContextf added in v0.0.65

func ErrorContextf(ctx context.Context, msg string, args ...any)

ErrorContextf logs to the error log with a Context.

func Errorf

func Errorf(msg string, args ...any)

Errorf logs to the error log.

func Exit added in v0.0.64

func Exit(args ...any)

Exit logs to the error log and exits.

func Exitf added in v0.0.64

func Exitf(msg string, args ...any)

Exitf logs to the error log and panics.

func Fatal

func Fatal(args ...any)

Fatal logs to the error log and panics.

func Fatalf

func Fatalf(msg string, args ...any)

Fatalf logs to the error log and panics.

func Fatalln

func Fatalln(args ...any)

Fatalln logs to the error log and panics.

func Info

func Info(args ...any)

Info logs to the informational log.

func InfoContext added in v0.0.65

func InfoContext(ctx context.Context, args ...any)

InfoContext logs to the informational log with a Context.

func InfoContextf added in v0.0.65

func InfoContextf(ctx context.Context, msg string, args ...any)

InfoContextf logs to the informational log with a Context.

func Infof

func Infof(msg string, args ...any)

Infof logs to the informational log.

func Warning

func Warning(args ...any)

Warning logs to the warning log.

func WarningContext added in v0.0.65

func WarningContext(ctx context.Context, args ...any)

WarningContext logs to the informational log with a Context.

func WarningContextf added in v0.0.65

func WarningContextf(ctx context.Context, msg string, args ...any)

WarningContextf logs to the warning log with a Context.

func Warningf

func Warningf(msg string, args ...any)

Warningf logs to the warning log.

Types

This section is empty.

Jump to

Keyboard shortcuts

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