Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type LoggerManager ¶
type LoggerManager struct {
// contains filtered or unexported fields
}
LoggerManager adds zerolog's json logger to context and log http requests.
func (*LoggerManager) Configure ¶
func (m *LoggerManager) Configure() error
Configure the manager. Options are not allowed to add after configure.
func (*LoggerManager) Options ¶
func (m *LoggerManager) Options(options ...Option)
Options add options to the manager.
type Option ¶
type Option func(*LoggerManager) error
Option is the option of LoggerManager.
func ExtraField ¶
ExtraField add an extra field to log for a http request.
func HasConsoleColor ¶
HasConsoleColor set color setting when IsConsole is true.
Click to show internal directories.
Click to hide internal directories.