Code Monkey home page Code Monkey logo

logview's Introduction

Overview

This project provides a viewer for logging output produced by Python programs using its standard library's logging package and sending logging events to TCP, UDP and ZeroMQ PUB sockets.

Screenshot:

image

Installation

This application has dependencies on Qt4/PyQt4 (required) and ZeroMQ/pyzmq (optional). None of the dependencies are easily installable, so a source distribution is provided (for use where you have Qt4 and PyQt4, and optionally ZeroMQ and pyzmq, already installed), and a set of binary distributions which contain all required dependencies is provided for those who either don't have Qt/PyQt or have an old version which doesn't work with this application (Note: this application has been tested with Qt 4.7 and later with PyQt 4.7.4 and later).

See the Downloads section for the different distributions.

Source distribution

Note that a setup.py is not included. Just unarchive into a folder and run logview.py. It's assumed that PyQt4 and (optionally) pyzmq will be found on the Python module search path.

Linux binary distribution

This was built on a Ubuntu Hardy machine and should work on most recent Linux distributions. Smoke tests were carried out on: Fedora 14, Ubuntu (Jaunty, Karmic, Maverick), Debian Lenny, Linux Mint 10 (Ubuntu and Debian variants) and OpenSUSE 11.3. On all these, the distribution seems to work.

To use, unarchive and run the logview executable.

Windows binary distribution

This was built on a Windows 7 machine and smoke-tested on Windows 7 and Windows XP with success.

To use, unarchive and run the logview.exe executable.

Mac OS X binary distribution

This was built and smoke-tested on a Leopard machine with Python 2.5.

To use, mount the DMG normally, and to install on your system, drag the LogView icon and drop it on the Applications icon. This installs the LogView package on your system (in the Applications folder), and you can then unmount and discard the DMG. To run, double-click on the LogView icon.

Usage

On all platforms, invoking with --help prints the details of available command-line options.

By default, the system listens on TCP at 0.0.0.0:9020, UDP on 0.0.0.0:9021 and via a ZeroMQ SUB socket connected to tcp://localhost:9024. If you override with command line options, these are saved and used on subsequent runs.

The screenshot shows the appearance of the application. The panes can be resized using the splitters. Clicking on a node in the tree shows only the messages for that part of the hierarchy, and clicking on the Root logger node shows all messages. You can filter messages according to specific levels (not a threshold - e.g. you can see CRITICAL messages but filter out all others).

Collection of messages from the network happens automatically on starting and continues until the program is closed. If you scroll right to the bottom of the records pane when collecting, this is "sticky" and will cause the pane to scroll as collection proceeds, so that the last collected records remain in view. The automatic scrolling stops when you scroll off the bottom of the pane.

Clicking on a single record will display its details in the lower property-style pane, in order of decreasing interest. Values that contain newlines (such as exception text) will result in a ... appearing in the rightmost column, clicking on which will display the multi-line text in a dialog box.

You can resize columns and reorder them using drag-and-drop. The "Columns..." button allows you to specify which columns are displayed, and their ordering.

logview's People

Contributors

vsajip avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.