ovs-bugtool: Ability to collect number of logs through plugins.
authorGurucharan Shetty <gshetty@nicira.com>
Wed, 20 Feb 2013 22:11:01 +0000 (14:11 -0800)
committerGurucharan Shetty <gshetty@nicira.com>
Mon, 25 Feb 2013 21:10:47 +0000 (13:10 -0800)
commit54e536a64f432b439832ad51dcd8ae175dac7487
treed0e6e69a59a243cfff7ec037a6f2f339462d5726
parent0000f2845fbfa34a222a1ce3dae25b84a93f0d2d
ovs-bugtool: Ability to collect number of logs through plugins.

A new option "--log-days" recently added lets us to control the
number of rotated logs included in the debug bundle. This option
only works on log files defined inside the ovs-bugtool code.

This patch lets us to do the same with logs collected through plugins.

The example format inside a plugin is:
<files type="logs">
    /var/log/one
</files>

This will collect one, one.[1-x], one.[1-x].gz. Where 'x' is 20
by default and can be controlled by the option '--log-days' passed
to ovs-bugtool.

Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
utilities/bugtool/ovs-bugtool.in