feat: allow configuration of log level
1 file changed, 9 insertions(+), 8 deletions(-)
changed files
M internal/server/server.go → internal/server/server.go
@@ -36,14 +36,15 @@ ShortSHA string ) type Config struct { - Production bool `conf:"default:false"` - InDevServer bool `conf:"default:false"` - LiveReload bool `conf:"default:false,flag:live"` - Root string `conf:"default:website"` - ListenAddress string `conf:"default:localhost"` - Port string `conf:"default:3000,short:p"` - BaseURL cfg.URL `conf:"default:http://localhost:3000,short:b"` - ConfigFile string `conf:"short:c"` + Production bool `conf:"default:false"` + InDevServer bool `conf:"default:false"` + LiveReload bool `conf:"default:false,flag:live"` + Root string `conf:"default:website"` + ListenAddress string `conf:"default:localhost"` + Port string `conf:"default:3000,short:p"` + BaseURL cfg.URL `conf:"default:http://localhost:3000,short:b"` + ConfigFile string `conf:"short:c"` + LogLevel slog.Level `conf:"default:INFO"` } type HTTPError struct {