hostapd调试级别配置

时间:2015-08-25 13:19:37

标签: wifi wificonfiguration hostapd

据我所知,到目前为止,hostapd是一个能够进行网络配置的二进制文件。

但是,要启用hostapd调试级别,是否需要重建二进制文件?我可以采取其他方法而不是重建一个新方法吗?

1 个答案:

答案 0 :(得分:8)

执行不带参数的hostapd会显示指定-d-dd启用调试消息:

  

-d显示更多调试消息(-dd更多)

还可以通过hostapd's configuration file

配置事件记录器详细程度
# hostapd event logger configuration
#
# Two output method: syslog and stdout (only usable if not forking to
# background).
#
# Module bitfield (ORed bitfield of modules that will be logged; -1 = all
# modules):
# bit 0 (1) = IEEE 802.11
# bit 1 (2) = IEEE 802.1X
# bit 2 (4) = RADIUS
# bit 3 (8) = WPA
# bit 4 (16) = driver interface
# bit 5 (32) = IAPP
# bit 6 (64) = MLME
#
# Levels (minimum value for logged events):
#  0 = verbose debugging
#  1 = debugging
#  2 = informational messages
#  3 = notification
#  4 = warning
#
logger_syslog=-1
logger_syslog_level=2
logger_stdout=-1
logger_stdout_level=2