[ovs-git] Open vSwitch: Python Logging Formatting Improvements (master)

dev at openvswitch.org dev at openvswitch.org
Mon Apr 28 17:03:39 UTC 2014


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Open vSwitch".

The branch, master has been updated
       via  a5ed8fe32cb3c996837c61af2e358fa34dc9936f (commit)
      from  6a5f9a8fbdfa85795101b46ee1047dfd2b1007c6 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit a5ed8fe32cb3c996837c61af2e358fa34dc9936f
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=a5ed8fe32cb3c996837c61af2e358fa34dc9936f
Author: Dave Tucker <dave at dtucker.co.uk>
		
Python Logging Formatting Improvements
		
The Open vSwitch daemons written in C support user-configured logging
patterns as described in ovs-appctl(8). This commit adds this capability
to the daemons written in Python.

- Add a '__log_patterns' attribute to the Vlog class
- Populate this using the default patterns in ovs-appctl(8)
- Add a '__start_time' attribute to the Vlog class to support '%r'
- Update the '_log' method to build the log message according to the
  pattern
- Add a 'set_pattern' method to allow the default patterns to be changed
- Update 'set_levels_from_string' to support setting the pattern from a
  string

Signed-off-by: Dave Tucker <dave at dtucker.co.uk>
Signed-off-by: Ben Pfaff <blp at nicira.com>


-----------------------------------------------------------------------

Summary of changes:
 AUTHORS            |    1 +
 NEWS               |    1 +
 lib/vlog.man       |    7 +--
 python/ovs/vlog.py |  128 +++++++++++++++++++++++++++++++++++++++++++++++-----
 tests/vlog.at      |   82 ++++++++++++++++++---------------
 5 files changed, 164 insertions(+), 55 deletions(-)


hooks/post-receive
-- 
Open vSwitch



More information about the git mailing list