log

package
v2.2.10 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Alert

func Alert(message string, context Mapper) error

Alert logger

func Critical

func Critical(message string, context Mapper) error

Critical logger

func Debug

func Debug(message string, context Mapper) error

Debug logger

func Emergency

func Emergency(message string, context Mapper) error

Emergency logger

func Error

func Error(message string, context Mapper) error

Error logger

func Info

func Info(message string, context Mapper) error

Info logger

func Log

func Log(level string, message string, context Mapper) error

Log logs a message at any given level

func Notice

func Notice(message string, context Mapper) error

Notice logger

func Warning

func Warning(message string, context Mapper) error

Warning logger

Types

type C

type C map[string]interface{}

C is a type for passing PSR context.

func (C) Map

func (c C) Map() map[string]interface{}

Map returns itself

type Mapper

type Mapper interface {
	Map() map[string]interface{}
}

Mapper is an interface for PSR Context

Jump to

Keyboard shortcuts

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