Documentation ¶
Index ¶
- Variables
- type Config
- type LogErrorStruct
- type LogStruct
- type LoggerService
- func (s *LoggerService) Debug(ls LogStruct)
- func (s *LoggerService) Debugf(f string, v ...interface{})
- func (s *LoggerService) Error(message LogErrorStruct)
- func (s *LoggerService) Errorf(f string, v ...interface{})
- func (s *LoggerService) Infof(f string, v ...interface{})
- func (s *LoggerService) Notify(message string)
- func (s *LoggerService) Print(ls LogStruct)
- func (s *LoggerService) RouteSeparator(route string)
- func (s *LoggerService) Separator()
- func (s *LoggerService) TraceHandler(c *fiber.Ctx, e interface{})
- func (s *LoggerService) Warningf(f string, v ...interface{})
- type TypeError
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ServiceError = TypeError{Code: 2, Description: "Сервисная ошибка"}
)
Functions ¶
This section is empty.
Types ¶
type LogErrorStruct ¶
type LoggerService ¶
func (*LoggerService) Debugf ¶
func (s *LoggerService) Debugf(f string, v ...interface{})
func (*LoggerService) Errorf ¶
func (s *LoggerService) Errorf(f string, v ...interface{})
func (*LoggerService) Infof ¶
func (s *LoggerService) Infof(f string, v ...interface{})
func (*LoggerService) Notify ¶
func (s *LoggerService) Notify(message string)
Простое оповещение в телеграм без вывода в консоль
func (*LoggerService) RouteSeparator ¶
func (s *LoggerService) RouteSeparator(route string)
func (*LoggerService) Separator ¶
func (s *LoggerService) Separator()
func (*LoggerService) TraceHandler ¶
func (s *LoggerService) TraceHandler(c *fiber.Ctx, e interface{})
Трейс ошибки для рекавера
func (*LoggerService) Warningf ¶
func (s *LoggerService) Warningf(f string, v ...interface{})
Click to show internal directories.
Click to hide internal directories.