tools: acrnlog: improve for log incompleteness problem

1. add warning when log incompleteness observed;
2. decrease default polling interval to reduce chance of log incompleteness;
3. add option "-t" to allow user to specify the polling interval;
4. modified README.rst to reflect the options.

Reviewed-by: Geoffroy Van Cutsem <geoffroy.vancutsem@intel.com>
Signed-off-by: Yan, Like <like.yan@intel.com>
This commit is contained in:
Yan, Like
2018-06-13 21:47:35 +08:00
committed by lijinxia
parent 57d6a933f6
commit b8bdf171eb
2 changed files with 45 additions and 2 deletions

View File

@@ -22,6 +22,22 @@ The ``acrnlog`` tool is launched as a service at boot, and limited to
supporting four 1MB log files by default. You can change this log file
limitation temporarily or permanently.
Options:
-h
display the help
-t:
specify a polling interval (ms). Once buffer is empty, acrnlog stops
and starts reading in specified interval.
If an incomplete log warning is reported, please try with a smaller
interval to get a complete log.
-s:
limit the size of each log file, in KB. 0 means no limitation.
-n:
specify the number of log files to keep, old files would be deleted.
Temporary log file changes
==========================