commit | d7c0a373ff38b28a14fd7ee1cc6be3cfbddbd850 | [log] [tgz] |
---|---|---|
author | Harald Welte <laforge@gnumonks.org> | Fri Dec 02 13:52:59 2016 +0100 |
committer | Harald Welte <laforge@gnumonks.org> | Fri Dec 02 13:52:59 2016 +0100 |
tree | 849dbab3cbbda0168ff0e22974dbea0ba966059d | |
parent | 909cbecbb9d3223b3b372849564600bb9be7fbda [diff] |
logging: Extend log_target with call-back for un-formatted log line Some targets might not want to receive only an opaque, pre-formatted string, but rather the unformatted arguments with metadata like sub-system/level/file/line. We solve this by introducing a log_target->output_raw() function pointer. If a target specifies this function, it takes precedence over the regular log_target->output() function. Change-Id: I9dc9205d70dce9581458e7e9dc2d8a92991897bd