logging

package
v1.53.0 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2017 License: AGPL-3.0 Imports: 7 Imported by: 3

Documentation

Overview

Package logging defines application-wide logging implementation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLogger

func NewLogger() env.Logger

NewLogger returns initialized logging instance.

Types

type Logger

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

Logger is how we log.

func (Logger) Error

func (l Logger) Error(message string, err error)

Error logs error with message.

func (Logger) Info

func (l Logger) Info(message string)

Info logs message.

func (Logger) SetDB

func (l Logger) SetDB(logger env.Logger, db *sqlx.DB) env.Logger

SetDB associates database connection with given logger. Logger will also record messages to database given valid database connection.

Jump to

Keyboard shortcuts

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