package
Version:
v0.1.4
Opens a new window with list of versions in this module.
Published: Jan 25, 2022
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 2
Opens a new window with list of known importers.
Documentation
¶
Debug logs a debug messagewith the default logger
Destroy closes the log file
Errors logs a message with level `error`with the default logger
Fatal logs the message and exits with non-zero exit code with the default logger
Info logs a message with level `info`with the default logger
Init initializes the default logger with a log path if specified
SetLevel sets the level of the default logger
Warn logs a message with level `warning`with the default logger
type LogParams map[string]interface{}
LogParams wrapper around key values used for logging
Logger for logging
DefaultLogger stores the instance of the DefaultLogger
NewLogger instantiates logger based on the config
With returns a logger with the specified parameters
Debug logs a debug message
Destroy should be called when exiting to close the log file
Error logs a message with level `error`
Fatal logs the message and exits with non-zero exit code
Info logs a message with level `info`
SetLevel sets the level of the logger
Warn logs a message with level `warning`
With returns a logger initialized with the parameters
Source Files
¶
Click to show internal directories.
Click to hide internal directories.