Home / Type/ LogFormatter Type — gin Architecture

LogFormatter Type — gin Architecture

Architecture documentation for the LogFormatter type/interface in logger.go from the gin codebase.

Entity Profile

Dependency Diagram

graph TD
  59f9b1fc_ccf6_9fcc_bfef_f5c14816d9a2["LogFormatter"]
  ed464f46_6294_af3d_9831_5646cd0d38c7["logger.go"]
  59f9b1fc_ccf6_9fcc_bfef_f5c14816d9a2 -->|defined in| ed464f46_6294_af3d_9831_5646cd0d38c7
  style 59f9b1fc_ccf6_9fcc_bfef_f5c14816d9a2 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

logger.go lines 39–54

type LoggerConfig struct {
	// Optional. Default value is gin.defaultLogFormatter
	Formatter LogFormatter

	// Output is a writer where logs are written.
	// Optional. Default value is gin.DefaultWriter.
	Output io.Writer

	// SkipPaths is a URL path array which logs are not written.
	// Optional.
	SkipPaths []string

	// Skip is a Skipper that indicates which logs should not be written.
	// Optional.
	Skip Skipper
}

Defined In

Frequently Asked Questions

What is the LogFormatter type?
LogFormatter is a type/interface in the gin codebase, defined in logger.go.
Where is LogFormatter defined?
LogFormatter is defined in logger.go at line 39.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free