Add configuration item for log level
There should be a way for an administrator to change the Stork logging level. For example, here is a snippet of my logs:
WARN[2022-09-26 21:45:51] promkeaexporter.go:147 Problem connecting to dhcp daemon: unable to forward command to the dhcp6 service: No such file or directory. The server is likely to be offline
INFO[2022-09-26 21:45:51] promkeaexporter.go:683 Encountered unsupported stat: v4-allocation-fail-no-pools
INFO[2022-09-26 21:45:51] promkeaexporter.go:683 Encountered unsupported stat: v4-allocation-fail-subnet
INFO[2022-09-26 21:45:51] promkeaexporter.go:680 Encountered unsupported stat: v4-reservation-conflicts
INFO[2022-09-26 21:45:51] promkeaexporter.go:683 Encountered unsupported stat: declined-addresses
INFO[2022-09-26 21:45:51] promkeaexporter.go:683 Encountered unsupported stat: reclaimed-leases
INFO[2022-09-26 21:45:51] promkeaexporter.go:683 Encountered unsupported stat: reclaimed-declined-addresses
INFO[2022-09-26 21:45:51] promkeaexporter.go:683 Encountered unsupported stat: v4-allocation-fail
INFO[2022-09-26 21:45:51] promkeaexporter.go:683 Encountered unsupported stat: v4-reservation-conflicts
INFO[2022-09-26 21:45:51] promkeaexporter.go:683 Encountered unsupported stat: v4-allocation-fail-shared-network
INFO[2022-09-26 21:45:51] promkeaexporter.go:683 Encountered unsupported stat: v4-allocation-fail-classes
INFO[2022-09-26 21:45:51] promkeaexporter.go:683 Encountered unsupported stat: cumulative-assigned-addresses
INFO[2022-09-26 21:45:51] promkeaexporter.go:680 Encountered unsupported stat: v4-reservation-conflicts
I would like to configure Stork to only log warnings or higher, resulting in this log:
WARN[2022-09-26 21:45:51] promkeaexporter.go:147 Problem connecting to dhcp daemon: unable to forward command to the dhcp6 service: No such file or directory. The server is likely to be offline
Originally (coincidentally) reported in #839 (closed).