logging

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChannelConfig

type ChannelConfig struct {
	Driver       string
	DriverConfig map[string]interface{}
}

ChannelConfig represents a logging channel configuration

type Config

type Config struct {
	// Default log channel
	Default string

	// Log channels
	Channels map[string]ChannelConfig
}

type Service

type Service struct {
	// contains filtered or unexported fields
}

func NewService

func NewService(application contracts.Application, config Config) *Service

func (*Service) Alert

func (s *Service) Alert(message string, context map[string]interface{}) error

func (*Service) Critical

func (s *Service) Critical(message string, context map[string]interface{}) error

func (*Service) Debug

func (s *Service) Debug(message string, context map[string]interface{}) error

func (*Service) Emergency

func (s *Service) Emergency(message string, context map[string]interface{}) error

func (*Service) Error

func (s *Service) Error(message string, context map[string]interface{}) error

func (*Service) Info

func (s *Service) Info(message string, context map[string]interface{}) error

func (*Service) Notice

func (s *Service) Notice(message string, context map[string]interface{}) error

func (*Service) RegisterDriver

func (s *Service) RegisterDriver(name string, construct contracts.LoggingDriverConstructor) error

func (*Service) Warning

func (s *Service) Warning(message string, context map[string]interface{}) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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