-
Notifications
You must be signed in to change notification settings - Fork 20
Add plugins for logging results #877
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
5cc7735
to
a0328ff
Compare
docs/plugins/result_loggers.rst
Outdated
The common file logger is the simplest possible result logger. It logs all test results to a single | ||
log file, located in a specified location. The format for configuring a common file logger consists | ||
of the plugin type (``common_file``) and the destination of the log file: | ||
|
||
.. code-block:: yaml | ||
result_loggers: | ||
- plugin: common_file | ||
dest: /path/to/results.log | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should have a comment in here about the locking requirements.
lib/pavilion/config.py
Outdated
ExPathElem( | ||
"result_log", | ||
# Derive the default from the working directory, if a value isn't | ||
# given. | ||
help_text="Results are put in both the general log and a specific " | ||
"results log. This defaults to 'results.log' in the default " | ||
"working directory."), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should have Pavilion print a deprecation warning and configure a common logger for this.
* Initial logging plugin * Progress towards result output plugins * Fix some things * Foo * Fix some errors * Foo * Progress * Foo * Foo * Fix flatten_results test * Fix flatten results test * Fix setup_logger unit test * Add common file logger plugin * --ammend * Remove maint command * Attempt to fix module tests * Fix series init test * Fix some module tests * Fix log cmd tests * Add unit test for series file logger * Improve flatten_results unit test * Fix style issues * Add unit test for common file logger * Fix _log_results command * Add documentation for result loggers * Restore result_log key * Add note about locking
Code review checklist: