log

package
v0.0.0-...-e560ebb Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2021 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Overview

Package log provides a wrapper over logging interfaces to simplify usage in recovery lib.

If Logger not set then default golang log package is using.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(ctx context.Context, format string, args ...interface{})

Debug log message at Debug level.

func Error

func Error(ctx context.Context, format string, args ...interface{})

Error is like Debug, but logs at Error level.

func Info

func Info(ctx context.Context, format string, args ...interface{})

Info is like Debug, but logs at Info level.

func Warning

func Warning(ctx context.Context, format string, args ...interface{})

Warning is like Debug, but logs at Warning level.

func WithLogger

func WithLogger(ctx context.Context, logger logger.Logger) context.Context

WithLogger sets logger to the context. If Logger is not provided process will be finished with panic.

Types

This section is empty.

Jump to

Keyboard shortcuts

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