diff options
author | Alasdair G Kergon <agk@redhat.com> | 2013-01-07 22:25:19 +0000 |
---|---|---|
committer | Alasdair G Kergon <agk@redhat.com> | 2013-01-07 22:25:19 +0000 |
commit | 7f747a0d739c08eadf319da9c3973f83c97c82af (patch) | |
tree | 4ec4d48fc352d364272bed8a1b5b4343ef96d56a /doc | |
parent | b617109fff859a5b970554b38852fc61deb29f77 (diff) | |
download | lvm2-7f747a0d739c08eadf319da9c3973f83c97c82af.tar.gz |
logging: add debug classes
Add log/debug_classes to lvm.conf to allow debug messages to be
classified and filtered at runtime.
The dm_errno field is only used by log_error(), so I've redefined it
for log_debug() messages to hold the message class.
By default, all existing messages appear, but we can add categories that
generate high volumes of data, such as logging all traffic to/from
lvmetad.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/example.conf.in | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/example.conf.in b/doc/example.conf.in index 872d6ef16..256e01278 100644 --- a/doc/example.conf.in +++ b/doc/example.conf.in @@ -307,6 +307,15 @@ log { # Set this if you want log messages during activation. # Don't use this in low memory situations (can deadlock). # activation = 0 + + # Some debugging messages are assigned to a class and only appear + # in debug output if the class is listed here. + # Classes currently available: + # memory, devices, activation, allocation, lvmetad, metadata, cache, + # locking + # Use "all" to see everything. + debug_classes = [ "memory", "devices", "activation", "allocation", + "lvmetad", "metadata", "cache", "locking" ] } # Configuration of metadata backups and archiving. In LVM2 when we |