Documentation
¶
Overview ¶
Package logger incapsulates logger functions
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppLogger ¶ added in v1.4.0
type AppLogger struct {
// contains filtered or unexported fields
}
AppLogger is a simple logger that writes messages to a file.
func Create ¶ added in v1.4.0
Create - creates a new logger with a specific log level. appPath - where log file will be stored. userSetLogLevel - user-defined log level (debug or info).
func (*AppLogger) Debug ¶ added in v1.4.0
Debug - prints debug message if log level is set to debug.
func (*AppLogger) Error ¶ added in v1.4.0
Error - prints an error message regardless of the log level.
Click to show internal directories.
Click to hide internal directories.