[issue #194] add facility to wrs_msg and <facility*8+priority> to output msgs
Logger can interpret get log facility & level (error, info, etc) from log message if such info is provided properly. I.e. it needs to be enclosed in <> and the first thing in the message. The wrs-msg.c file in the libwr was changed such that the log facility & level ares properly printed in log messages, and thus later properly interpreted by the syslog elastic search on the server. For this, wrs_msg lib needs to know the faciltiy of the application that uses it. Thus, the wrs_msg_init() function was updated (in the library and all its calls in applications)
Showing
- userspace/libwr/include/libwr/wrs-msg.h 3 additions, 1 deletionuserspace/libwr/include/libwr/wrs-msg.h
- userspace/libwr/wrs-msg.c 10 additions, 7 deletionsuserspace/libwr/wrs-msg.c
- userspace/tools/wr_mon.c 1 addition, 1 deletionuserspace/tools/wr_mon.c
- userspace/tools/wr_phytool.c 1 addition, 1 deletionuserspace/tools/wr_phytool.c
- userspace/tools/wrs_checkcfg.c 1 addition, 1 deletionuserspace/tools/wrs_checkcfg.c
- userspace/tools/wrs_leapsec.c 1 addition, 1 deletionuserspace/tools/wrs_leapsec.c
- userspace/tools/wrs_sfp_dump.c 1 addition, 1 deletionuserspace/tools/wrs_sfp_dump.c
- userspace/tools/wrs_status_led.c 1 addition, 1 deletionuserspace/tools/wrs_status_led.c
- userspace/tools/wrs_throttling.c 1 addition, 1 deletionuserspace/tools/wrs_throttling.c
- userspace/tools/wrs_version.c 1 addition, 1 deletionuserspace/tools/wrs_version.c
- userspace/tools/wrs_vlans.c 1 addition, 1 deletionuserspace/tools/wrs_vlans.c
- userspace/wrs_watchdog/wrs_watchdog.c 1 addition, 1 deletionuserspace/wrs_watchdog/wrs_watchdog.c
- userspace/wrsw_hal/hal_main.c 1 addition, 1 deletionuserspace/wrsw_hal/hal_main.c
- userspace/wrsw_rtud/rtud.c 1 addition, 1 deletionuserspace/wrsw_rtud/rtud.c
Please register or sign in to comment