logger

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

README

Logger

Installation

go get github.com/tpm-common/gommon/logger

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

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

func New

func New(service string) Logger

func (Logger) Error

func (l Logger) Error(err error, msg string, keysAndValues ...any)

func (Logger) Info

func (l Logger) Info(msg string, keysAndValues ...any)

func (Logger) WithFields

func (l Logger) WithFields(keysAndValues ...any) Logger

func (Logger) WithLevel

func (l Logger) WithLevel(level int) Logger

func (Logger) WithName

func (l Logger) WithName(name string) Logger

Jump to

Keyboard shortcuts

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