Documentation ¶
Overview ¶
Package internallogger provides a customized logging utility built on top of Uber's zap library. It also integrates with the service's internal context to automatically extract and log mutable fields.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LogField ¶
type LogField map[string]interface{}
LogField represents a custom map type for log fields.
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger encapsulates an instance of zap's logger with custom functionalities.
func NewLogger ¶
NewLogger initializes and returns a new instance of Logger with predefined configurations.
func (*Logger) Error ¶
Error logs an error message and extracts additional fields from the context, if present.
Click to show internal directories.
Click to hide internal directories.