Defined library log levels and add a new API to set the desired log level. v2 changes: - Add a parameter to tep_vprint() for errno printing, insted of using the log level. Tzvetomir Stoyanov (VMware) (4): libtraceevent: Add log levels libtraceevent: Add logs with severity info libtraceevent: Rename tep_vwarning() to tep_vprint() libtraceevent: Document new log functionality Documentation/libtraceevent-log.txt | 90 +++++++++++++++++++++++++++++ Documentation/libtraceevent.txt | 3 + src/event-parse.c | 14 ++--- src/event-parse.h | 12 ++++ src/event-plugin.c | 2 +- src/event-utils.h | 12 ++-- src/parse-utils.c | 65 +++++++++++++-------- 7 files changed, 158 insertions(+), 40 deletions(-) create mode 100644 Documentation/libtraceevent-log.txt -- 2.31.1