logger

package
v0.0.0-...-9092e86 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AppName         = "api-bank-transfer"
	TimestampFormat = time.RFC3339

	FieldKeyTime = "logdate"
	FieldKeyMsg  = "messages"

	FieldApp = "app"
	FieldEnv = "env"
	FieldTid = "tid"
)

Variables

View Source
var (
	App string
	Env string
)

Functions

func Debug

func Debug(message string, cid string, fields Fields)

func Error

func Error(message string, cid string, fields Fields)

func Fatal

func Fatal(message string, cid string, fields Fields)

func Info

func Info(message string, cid string, fields Fields)

func Warn

func Warn(message string, cid string, fields Fields)

Types

type Fields

type Fields map[string]interface{}

Jump to

Keyboard shortcuts

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