applog

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2024 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.AppLog = applog.NewAppLogger(appName)

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppLogger

type AppLogger struct {
	// contains filtered or unexported fields
}
var AppLog AppLogger

func NewAppLogger

func NewAppLogger(appName string) AppLogger

func (*AppLogger) Info

func (al *AppLogger) Info(payload string)

Jump to

Keyboard shortcuts

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