Documentation
¶
Overview ¶
Package logger provides the single construction point for tailkitd's structured logger. Every other package receives a *zap.Logger as a constructor argument — this is the only file that calls zap.New*.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Build ¶
Build returns a *zap.Logger configured for the given environment.
- "development": human-readable console output, DEBUG level and above, caller information included. Use when running tailkitd locally.
- anything else (including ""): JSON output to stderr, INFO level and above. This is the production default.
The environment is typically sourced from the TAILKITD_ENV environment variable in main.go:
logger, err := logger.Build(os.Getenv("TAILKITD_ENV"))
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.