1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00
lvm2/lib/report
Peter Rajnoha 7d4a15e53a log: log warnings and errors via report if set; add log_set_report* fns
This patch adds structures and functions to reroute error and warning
logs to log report, if it's set.

There are 5 new functions:
  - log_set_report
    Set log report where logging will be rerouted.

  - log_set_report_context
    Set context globally so any report_cmdlog call will use it.

  - log_set_report_object_type
    Set object type globally so any report_cmdlog call will use it.

  - log_set_report_object_name_and_id
    Set object ID and name globally so any report_cmdlog call will use it.

  - log_set_report_object_group_and_group_id
    Set object group ID and name globally so any report_cmdlog call will use it.

These functions will be called during LVM command processing so any logs
which are rerouted to log report contain proper information about current
processing state.
2016-06-20 11:33:42 +02:00
..
columns-cmdlog.h report: add CMDLOG report type 2016-06-20 11:33:08 +02:00
columns-devtypes.h doc: change fsf address 2016-01-21 12:11:37 +01:00
columns.h report: convert more options to use single status 2016-05-27 15:47:24 +02:00
properties.c cache: call status only on cache pool in use 2016-05-27 15:47:24 +02:00
properties.h doc: change fsf address 2016-01-21 12:11:37 +01:00
report.c report: add CMDLOG report type 2016-06-20 11:33:08 +02:00
report.h log: log warnings and errors via report if set; add log_set_report* fns 2016-06-20 11:33:42 +02:00
values.h pvs: new attr and field for unchosen duplicate device 2016-05-06 09:00:00 -05:00