logger

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: Apache-2.0 Imports: 2 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Logger *log.Logger

Logger is defined during initialization and kept globally to be used everywhere

Functions

func Base

func Base(service string, predefined ...*log.Entry) *log.Entry

Base will return a *log.entry with set service name JSON key as value If predefined log entry is supplied, the JSON fields will be added on top of that

func LogError

func LogError(err, msg string, predefined *log.Entry)

LogError logs error with "msg" and sets the "err" as value of error key

func WithTestType

func WithTestType(tt string, predefined ...*log.Entry) *log.Entry

WithTestType will return a *log.entry with set test type JSON key as value If predefined log entry is supplied, the JSON fields will be added on top of that

Types

This section is empty.

Jump to

Keyboard shortcuts

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