@@ -24,9 +24,9 @@ let
2424
2525 # logging (debug level)
2626 logger_syslog=-1
27− logger_syslog_level=2
27+ logger_syslog_level=${toString cfg.logLevel}
2828 logger_stdout=-1
29− logger_stdout_level=2
29+ logger_stdout_level=${toString cfg.logLevel}
3030
3131 ctrl_interface=/run/hostapd
3232 ctrl_interface_group=${cfg.group}
@@ -145,6 +145,19 @@ in
145145 '';
146146 };
147147
148+ logLevel = mkOption {
149+ default = 2;
150+ type = types.int;
151+ description = ''
152+ Levels (minimum value for logged events):
153+ 0 = verbose debugging
154+ 1 = debugging
155+ 2 = informational messages
156+ 3 = notification
157+ 4 = warning
158+ '';
159+ };
160+
148161 countryCode = mkOption {
149162 default = null;
150163 example = "US";