logger

package
v0.1.11 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func API

func API() *zerolog.Logger

API returns the API module logger

func Auth

func Auth() *zerolog.Logger

Auth returns the auth module logger

func Chain

func Chain() *zerolog.Logger

Chain returns the chain module logger

func EVM

func EVM() *zerolog.Logger

EVM returns the EVM module logger

func Get

func Get(module Module) *zerolog.Logger

Get returns the logger for a specific module (pointer for zerolog chain API)

func GetGlobal

func GetGlobal() *zerolog.Logger

GetGlobal returns the global logger

func Init

func Init(level zerolog.Level, pretty bool)

Init initializes the global logger and module loggers

func Notify

func Notify() *zerolog.Logger

Notify returns the notify module logger

func Rule

func Rule() *zerolog.Logger

Rule returns the rule module logger

func Service

func Service() *zerolog.Logger

Service returns the service module logger

func StateMachine

func StateMachine() *zerolog.Logger

StateMachine returns the state machine module logger

func Storage

func Storage() *zerolog.Logger

Storage returns the storage module logger

func System

func System() *zerolog.Logger

System returns the system module logger

func WithContext

func WithContext(module Module, fields map[string]interface{}) zerolog.Logger

WithContext adds additional context fields to a module logger

Types

type Module

type Module string

Module represents different modules in the system

const (
	ModuleAPI          Module = "api"
	ModuleAuth         Module = "auth"
	ModuleChain        Module = "chain"
	ModuleEVM          Module = "evm"
	ModuleNotify       Module = "notify"
	ModuleRule         Module = "rule"
	ModuleService      Module = "service"
	ModuleStateMachine Module = "statemachine"
	ModuleStorage      Module = "storage"
	ModuleSystem       Module = "system"
)

Jump to

Keyboard shortcuts

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