[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Duplicity-tracker] [patch #6670] Machine Readable Output
From: |
Kenneth Loafman |
Subject: |
[Duplicity-tracker] [patch #6670] Machine Readable Output |
Date: |
Wed, 12 Nov 2008 12:53:19 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.3) Gecko/2008092510 Ubuntu/8.04 (hardy) Firefox/3.0.3 |
URL:
<http://savannah.nongnu.org/patch/?6670>
Summary: Machine Readable Output
Project: duplicity
Submitted by: loafman
Submitted on: Wed 12 Nov 2008 06:53:17 AM CST
Category: None
Priority: 5 - Normal
Status: In Progress
Privacy: Public
Assigned to: loafman
Originator Email:
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
Michael Terry from the mail list:
Here's a second shot at adding machine-readable output to duplicity. This
version depends on nothing more than the logging module in Python. No glib or
dbus.
It adds two new arguments (--log-fd and --log-file). It writes to the fd or
file well-formed 'stanzas' as normal duplicity messages are output.
For example, if duplicity was going to put an error about command line
syntax, the log would show:
ERROR 2\n
. Command line error: Expected 2 args, got 0\n
. Enter 'duplicity --help' for help screen.\n
\n
The stanza starts with a keyword, has a message id number, followed by some
suggested user text and ending with a newline. Currently, the 'named'
verbosity levels are all supported (DEBUG, INFO, NOTICE, WARNING, ERROR).
You can output to multiple files or fd at a time. As part of this change, I
rewrote the current logging to use the logging module too. I've attached the
diff, the readme, and a small unit test file.
Like the first patch, I also made some additional small changes -- I made the
return value for --help be 0, and I added some message id numbers: ERROR 2 is
command line syntax error, 3 is source mismatch. WARNING 2 -> 6 are certain
'unmatched files were found' warnings.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Wed 12 Nov 2008 06:53:17 AM CST Name: unified-log.patch Size: 15kB
By: loafman
<http://savannah.nongnu.org/patch/download.php?file_id=16834>
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/patch/?6670>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
- [Duplicity-tracker] [patch #6670] Machine Readable Output,
Kenneth Loafman <=