package
0.3.7
Repository: https://github.com/xmlking/micro-starter-kit.git
Documentation: pkg.go.dev

# 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

# Packages

No description provided by the author
Package gormlog provides gorm logger implementation using Go-Micro's meta logger.
No description provided by the author
No description provided by the author

# 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.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

Default Logger.

# Structs

No description provided by the author

# Interfaces

No description provided by the author

# Type aliases

Log format enum.
No description provided by the author