logger

package
v0.0.0-...-3591828 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Logs package is responsible for providing logs to keep bot working the right way and to keep track of messages

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrWrongCommand          = errors.New("wrong command syntax")
	ErrUserNotExist          = errors.New("there is no such user")
	ErrUnableToSendMessage   = errors.New("inability to send a message")
	ErrNotEnoughPermissions  = errors.New("not enough permission to perform an action")
	ErrFuncUnavailable       = errors.New("function is not implemented yet")
	ErrSendingImage          = errors.New("image can not be send")
	ErrStatusUpdate          = errors.New("status can not be updated")
	ErrSessionOpening        = errors.New("session can not be opened")
	ErrYetAnotherStupidError = errors.New("how the heck did that break")
	ErrTooMuchFlags          = errors.New("too much flags specified to the command")
	ErrInvalidCommandUsage   = errors.New("the command wasn't used in a proper way")
	ErrPublishingCommands    = errors.New("can not publish commands")
	ErrUnmarshalingJSON      = errors.New("can not unmarshal Json")
	ErrReachingAPI           = errors.New("can not get a response from API")
	ErrBuildingQuery         = errors.New("error occurred while building query")
)

Functions

This section is empty.

Types

type Logger

type Logger struct {
	*zap.Logger
}

func NewLogger

func NewLogger() Logger

Jump to

Keyboard shortcuts

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