Documentation
¶
Index ¶
Constants ¶
View Source
const ( FormatJSON = "json" FormatYAML = "yaml" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type JSONFormatter ¶ added in v0.13.2
type JSONFormatter struct{}
JSONFormatter implements JSON format
func (JSONFormatter) FileExtension ¶ added in v0.13.2
func (f JSONFormatter) FileExtension() string
func (JSONFormatter) Format ¶ added in v0.13.2
func (f JSONFormatter) Format(data interface{}) ([]byte, error)
type Logger ¶ added in v0.13.2
type Logger struct {
// contains filtered or unexported fields
}
Logger core logging structure
type Option ¶ added in v0.13.2
Option configuration function type
func WithBufferSize ¶ added in v0.13.2
WithBufferSize sets buffer size
func WithFormatter ¶ added in v0.13.2
WithFormatter sets log format
type YAMLFormatter ¶ added in v0.13.2
type YAMLFormatter struct{}
YAMLFormatter implements YAML format
func (YAMLFormatter) FileExtension ¶ added in v0.13.2
func (f YAMLFormatter) FileExtension() string
func (YAMLFormatter) Format ¶ added in v0.13.2
func (f YAMLFormatter) Format(data interface{}) ([]byte, error)
Click to show internal directories.
Click to hide internal directories.