# README
Logger
This logger basically configure zerolog so that you can log via github.com/rs/zerolog/log
Usage
Import shared/logger
package. It will be self-initialized.
import "github.com/xmlking/micro-starter-kit/shared/logger"
Your can set Logger config via Environment Variables: CONFIGOR_LOG_LEVEL
, CONFIGOR_LOG_FORMAT
Test
CONFIGOR_LOG_LEVEL=info CONFIGOR_LOG_FORMAT=json go test github.com/xmlking/micro-starter-kit/shared/logger -count=1
# Functions
Helper functions on DefaultLogger.
No description provided by the author
No description provided by the author
ReportCaller set value to `true`.
No description provided by the author
WithFields set default fields for the logger.
WithFormat set default log format for the logger.
WithLevel set default level for the logger.
WithOutput set default output writer for the logger.
WithTimeFormat set default timeFormat for the logger.
# Variables
Default Logger.
# Interfaces
No description provided by the author