log

package
v0.0.0-...-65f3c3b Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2017 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Operation string

Operation a operacao usada na API

View Source
var Recipient string

Recipient o nome do banco

Functions

func Close

func Close()

Close fecha a conexao com o SEQ

func Info

func Info(msg string)

Info loga mensagem do level INFO

func Install

func Install() error

Install instala o "servico" de log do SEQ

Types

type Log

type Log struct {
	Operation   string
	Recipient   string
	RequestKey  string
	BankName    string
	NossoNumero uint
	// contains filtered or unexported fields
}

Log struct com os elemtos do log

func CreateLog

func CreateLog() *Log

CreateLog cria uma nova instancia do Log

func (Log) Fatal

func (l Log) Fatal(content interface{}, msg string)

Fatal loga erros da aplicação

func (Log) Request

func (l Log) Request(content interface{}, url string, headers map[string]string)

Request loga o request para algum banco

func (Log) Response

func (l Log) Response(content interface{}, url string)

Response loga o response para algum banco

func (Log) Warn

func (l Log) Warn(content interface{}, msg string)

Warn loga mensagem do leve Warning

Jump to

Keyboard shortcuts

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