Documentation
¶
Overview ¶
Package logging provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.5.1 DO NOT EDIT.
Package logging provides configurable zap logger creation for Antfly/Termite services.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSwagger ¶
GetSwagger returns the Swagger specification corresponding to the generated code in this file. The external references of Swagger specification are resolved. The logic of resolving external references is tightly connected to "import-mapping" feature. Externally referenced files must be embedded in the corresponding golang packages. Urls can be supported but this task was out of the scope.
func NewLogfmtEncoder ¶
func NewLogfmtEncoder(cfg zapcore.EncoderConfig) zapcore.Encoder
NewLogfmtEncoder creates a new logfmt encoder.
Types ¶
type Config ¶
type Config struct {
// Level Logging verbosity level
Level Level `json:"level,omitempty,omitzero"`
// Style Logging output format style. 'terminal' for colorized console, 'json' for structured JSON, 'logfmt' for token-efficient key=value pairs, 'noop' for silent.
Style Style `json:"style,omitempty,omitzero"`
}
Config Logging configuration for Termite services