shared

package module
v0.0.55 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2025 License: 0BSD Imports: 6 Imported by: 0

README

Shared Module

This go module contains shared functionality for components of the Ocelot Cloud ecosystem.

Contributing

Please read the Community articles for more information on how to contribute to the project and interact with others.

License

This project is licensed under the 0BSD License - see the LICENSE file for details.

Documentation

Index

Constants

View Source
const (
	TRACE logLevelValue = iota
	DEBUG
	INFO
	WARN
	ERROR
)

Variables

View Source
var DataDir = "data"

Functions

func GetLogLevel added in v0.0.14

func GetLogLevel() string

Types

type Logger

type Logger interface {
	Trace(message string, v ...any)
	Debug(message string, v ...any)
	Info(message string, v ...any)
	Warn(message string, v ...any)
	Error(message string, v ...any)
	Fatal(message string, v ...any)
}

func ProvideLogger

func ProvideLogger(logLevel string) Logger

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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