Repository navigation
Set default status level from config.yml for httplogs
What's New
Added default status level for http logging, you can enable access logging for specific status code by:
- Setting the below in your config.yml file
access_logs:
statusLevel: 200- Calling
SetStatusLevelin your main.go:
httplogs.InitLogging(
moduleName,
httplogs.SetConsulIP(consulHost),
httplogs.SetLogger(logger),
httplogs.SetStatusLevel(viper.GetInt("access_logs.statusLevel")),)What's Changed
- get default status level from config.yml by @cw-balaji in #214
Full Changelog: v1.13.3...v1.13.4