Module: deluge
Branch: plugins-namespace
Commit: 3b00a7de59b2f6ed889d4c0816051af50725fa12

Author: Pedro Algarvio <[email protected]>
Date:   Mon Dec  6 11:20:22 2010 +0000

Swhiched the old style logging, ie, a single logger for all logging output to 
several loggers. This brings the ability to tweak the logging levels for each 
of the loggers, ie, we can have the "deluge" logger be at the ERROR level while 
having "deluge.core" at the DEBUG level, meaning we will only see log message 
for all of the deluge loggers above the ERROR level while still having all 
messages above the DEBUG level for the "deluge.core" logger and it's children. 
This kind of tweak can be achieved by adding a file named "logging.conf" to 
deluge's config dir and this is explained on the 
`deluge.log.tweak_logging_levels` function.
Passing `-r` to the cli's while also passing `-l` will make the logfile rotate 
when reaching 5Mb in size. Three backups will be kept at all times.
All deluge's code is now using this new style logging along with the git hosted 
plugins. For other plugins not hosted by deluge, which still imports `LOG` as 
the logger, a deprecation warning will be shown explaining the required changes 
needed to use the new style logging. New plugins created by the `create_plugin` 
script will use the new logging facilities.

---

 ChangeLog                                          |    2 +
 deluge/common.py                                   |   14 +-
 deluge/component.py                                |    4 +-
 deluge/config.py                                   |    4 +-
 deluge/configmanager.py                            |    6 +-
 deluge/core/alertmanager.py                        |    3 +-
 deluge/core/authmanager.py                         |    3 +-
 deluge/core/autoadd.py                             |    4 +-
 deluge/core/core.py                                |    6 +-
 deluge/core/daemon.py                              |    4 +-
 deluge/core/eventmanager.py                        |    4 +-
 deluge/core/filtermanager.py                       |    5 +-
 deluge/core/oldstateupgrader.py                    |    4 +-
 deluge/core/pluginmanager.py                       |    4 +-
 deluge/core/preferencesmanager.py                  |    4 +-
 deluge/core/rpcserver.py                           |    5 +-
 deluge/core/torrent.py                             |    4 +-
 deluge/core/torrentmanager.py                      |    7 +-
 deluge/httpdownloader.py                           |   12 +-
 deluge/log.py                                      |  228 ++++++++++++++++++--
 deluge/main.py                                     |   43 +++-
 deluge/metafile.py                                 |    6 +-
 deluge/pluginmanagerbase.py                        |    5 +-
 deluge/plugins/autoadd/autoadd/core.py             |   26 ++-
 deluge/plugins/autoadd/autoadd/gtkui.py            |   68 +++---
 deluge/plugins/autoadd/autoadd/webui.py            |    4 +-
 deluge/plugins/blocklist/blocklist/core.py         |   20 +-
 deluge/plugins/blocklist/blocklist/gtkui.py        |    4 +-
 deluge/plugins/blocklist/blocklist/peerguardian.py |    4 +-
 deluge/plugins/blocklist/blocklist/webui.py        |    4 +-
 deluge/plugins/example/example/core.py             |    4 +-
 deluge/plugins/example/example/gtkui.py            |    4 +-
 deluge/plugins/example/example/webui.py            |    8 +-
 deluge/plugins/execute/execute/core.py             |    4 +-
 deluge/plugins/execute/execute/gtkui.py            |    4 +-
 deluge/plugins/execute/execute/webui.py            |    6 +-
 deluge/plugins/extractor/extractor/core.py         |   12 +-
 deluge/plugins/extractor/extractor/gtkui.py        |    6 +-
 deluge/plugins/extractor/extractor/webui.py        |    4 +-
 deluge/plugins/feeder/feeder/core.py               |    4 +-
 deluge/plugins/feeder/feeder/webui.py              |   16 +-
 deluge/plugins/freespace/freespace/__init__.py     |    2 +-
 deluge/plugins/freespace/freespace/common.py       |    2 +-
 deluge/plugins/freespace/freespace/core.py         |    6 +-
 deluge/plugins/freespace/freespace/gtkui.py        |    6 +-
 deluge/plugins/freespace/freespace/webui.py        |    6 +-
 deluge/plugins/freespace/setup.py                  |    4 +-
 deluge/plugins/init.py                             |    4 +-
 deluge/plugins/label/label/core.py                 |    4 +-
 deluge/plugins/label/label/gtkui/__init__.py       |    4 +-
 deluge/plugins/label/label/gtkui/label_config.py   |    4 +-
 deluge/plugins/label/label/gtkui/sidebar_menu.py   |    4 +-
 deluge/plugins/label/label/gtkui/submenu.py        |    4 +-
 deluge/plugins/label/label/webui.py                |    4 +-
 .../notifications/notifications/__init__.py        |    2 +-
 .../plugins/notifications/notifications/common.py  |    6 +-
 deluge/plugins/notifications/notifications/core.py |    6 +-
 .../plugins/notifications/notifications/gtkui.py   |    6 +-
 deluge/plugins/notifications/notifications/test.py |    8 +-
 .../plugins/notifications/notifications/webui.py   |    6 +-
 deluge/plugins/notifications/setup.py              |    4 +-
 deluge/plugins/pluginbase.py                       |   16 +-
 deluge/plugins/scheduler/scheduler/core.py         |    4 +-
 deluge/plugins/scheduler/scheduler/gtkui.py        |    4 +-
 deluge/plugins/scheduler/scheduler/webui.py        |    8 +-
 deluge/plugins/stats/stats/core.py                 |    4 +-
 deluge/plugins/stats/stats/graph.py                |    4 +-
 deluge/plugins/stats/stats/gtkui.py                |    4 +-
 deluge/plugins/stats/stats/webui.py                |    8 +-
 deluge/plugins/toggle/toggle/core.py               |    4 +-
 deluge/plugins/toggle/toggle/gtkui.py              |    4 +-
 deluge/plugins/toggle/toggle/webui.py              |    4 +-
 deluge/plugins/webui/webui/core.py                 |   20 +-
 deluge/plugins/webui/webui/gtkui.py                |    6 +-
 deluge/scripts/create_plugin.py                    |   39 ++--
 deluge/tests/test_log.py                           |   21 ++
 deluge/ui/client.py                                |   26 ++-
 deluge/ui/common.py                                |    4 +-
 deluge/ui/console/commands/config.py               |   12 +-
 deluge/ui/console/eventlog.py                      |    3 +-
 deluge/ui/console/main.py                          |    7 +-
 deluge/ui/console/screen.py                        |    4 +-
 deluge/ui/coreconfig.py                            |    4 +-
 deluge/ui/gtkui/addtorrentdialog.py                |    7 +-
 deluge/ui/gtkui/common.py                          |    8 +-
 deluge/ui/gtkui/connectionmanager.py               |    4 +-
 deluge/ui/gtkui/createtorrentdialog.py             |    4 +-
 deluge/ui/gtkui/details_tab.py                     |    6 +-
 deluge/ui/gtkui/edittrackersdialog.py              |    7 +-
 deluge/ui/gtkui/files_tab.py                       |    7 +-
 deluge/ui/gtkui/filtertreeview.py                  |    6 +-
 deluge/ui/gtkui/gtkui.py                           |    7 +-
 deluge/ui/gtkui/ipcinterface.py                    |   18 +-
 deluge/ui/gtkui/listview.py                        |    3 +-
 deluge/ui/gtkui/mainwindow.py                      |    6 +-
 deluge/ui/gtkui/menubar.py                         |    6 +-
 deluge/ui/gtkui/notification.py                    |   22 ++-
 deluge/ui/gtkui/peers_tab.py                       |    7 +-
 deluge/ui/gtkui/pluginmanager.py                   |    4 +-
 deluge/ui/gtkui/preferences.py                     |   13 +-
 deluge/ui/gtkui/queuedtorrents.py                  |    9 +-
 deluge/ui/gtkui/removetorrentdialog.py             |    7 +-
 deluge/ui/gtkui/sidebar.py                         |    4 +-
 deluge/ui/gtkui/status_tab.py                      |    7 +-
 deluge/ui/gtkui/statusbar.py                       |    4 +-
 deluge/ui/gtkui/systemtray.py                      |    4 +-
 deluge/ui/gtkui/toolbar.py                         |    7 +-
 deluge/ui/gtkui/torrentdetails.py                  |    6 +-
 deluge/ui/gtkui/torrentview.py                     |    7 +-
 deluge/ui/sessionproxy.py                          |    4 +-
 deluge/ui/tracker_icons.py                         |    5 +-
 deluge/ui/ui.py                                    |   18 ++-
 deluge/ui/web/server.py                            |   14 +-
 113 files changed, 795 insertions(+), 321 deletions(-)

-- 
You received this message because you are subscribed to the Google Groups 
"deluge-commit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/deluge-commit?hl=en.

Reply via email to