applog

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2025 License: MIT Imports: 3 Imported by: 0

README

App log package

This is a package for general logging.

Usage

Here is an example of how to use this package. Init logger in main to be used everywhere in the app.

// In main function
appName := "todo"
applog.SetAppName(appName)

// Used elsewhere in the app
applog.Info("This is an info message")

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Error added in v0.17.0

func Error(payload string)

func Errorf added in v0.17.0

func Errorf(payload string, error error)

func Info

func Info(payload string)

func Infof added in v0.17.0

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

func SetAppName

func SetAppName(appName string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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