wiki:LogViewerPlugin

Version 3 (modified by anonymous, 5 years ago) (diff)

--

View the trac.log file via the web frontend

Description

This plugin allows you to view your trac.log logfile without shell access, just via the Web-UI Admin interface. You can select to only display messages from a specified log level (e.g. only warnings), optionally including higher levels. So if you select "Debug" and all higher levels, this means to display the entire log.

Be careful with large log files ;)

Bugs/Feature Requests

Existing bugs and feature requests for LogViewerPlugin are here.

If you have any issues, create a new ticket.

Download

Download the zipped source from here.

Source

You can check out LogViewerPlugin from here using Subversion, or browse the source with Trac.

Installation

The easiest way to install this plugin is:

easy_install http://trac-hacks.org/svn/logviewerplugin/0.11/trunk

You can also checkout the code from the repository, or download and unpack the zipped source (see above) - and then run either easy_install or python setup.py from where the setup.py file resides.

Moreover, you will need to enable the plugin for your trac environment(s):

[components]
logviewer.* = enabled

There's no more configuration required.

Usage

You find the Log Viewer on the Admin page in the General section (see below). Having this page called, you select the log level you wish to see the entries for, using the drop-down. Optionally, you may chose to display all "higher priority" as well (where "higher" means the entries on top of the one you selected).

An additional filter option is provided by the input box on the right: Here you may enter a search term - only lines including that term will be displayed then.

Once you made your selections, push the button - and the matching lines from the trac.log will be displayed.

Example

Hell, what example? OK: Here is what it may look like, having selected "Warnings and above":

Viewing selected log entries

User Comments

  • Your feedback here, please :-)

Recent Changes

[13412] by izzy on 2013-10-11 23:33:52
! fixing unicode issue as reported with ticket:7527
[13411] by izzy on 2013-10-11 23:20:20
separating code working before the localizing in Trac 0.11 to its own branch before adding changes not tested on earlier versions
[13410] by izzy on 2013-10-11 23:20:11
adding branches

Author/Contributors

Author: izzy
Contributors:

Attachments (3)

Download all attachments as: .zip