Code Monkey home page Code Monkey logo

blue-log-viewer's Introduction

A Simple Application To View Apache's error.log file

Log Viewer - Main Window

This program is not related to Apache or the Apache Software Foundation in any way

Blue Log Viewer Icon

To Run on GNU/Linux:

./blue-log-viewer.py /var/log/apache2/error.log

If you see something resembling the following:

Traceback (most recent call last):
  File "./blue-log-viewer.py", line 3, in <module>
    from PyQt5.QtWidgets import QApplication
ModuleNotFoundError: No module named 'PyQt5'
then on Debian / Ubuntu / XUbuntu / Kubuntu / KDE Neon run:

sudo apt-get install python3-pyqt5

or on Fedora (Redhat RPM based) use pip3 instead:

sudo pip3 install pyqt5

...then try again.


To Run on Mac OSX:

Log Viewer - Main Window I use https://brew.sh/ to get it to install - you can try pip3 etc

python3.7 blue-log-viewer.py

If you see something resembling the following:

Traceback (most recent call last):
  File "./blue-log-viewer.py", line 3, in <module>
    from PyQt5.QtWidgets import QApplication
ModuleNotFoundError: No module named 'PyQt5'
Then run

brew install pyqt5

...then try again.


To test

This application has some Selenium style functional tests. You can see them by looking in ./features/runs.py and looking at the Cucumber in the comments.

They use Python's native testing as a test harness for running these tests.

To run them do the following:

  1. Edit ./blue-log-viewer.py, find the line if False and flip it to true to enable testing (make sure you turn it back to false for production).

  2. Make sure localhost port 8032 is available

  3. run python3 features/runs.py


AppImage

This whole program can be compiled into an AppImage!

  • To run the build execute: prepair-artwork-and-create-app-image.sh *

  • The AppImage doesn't currently have a signed key

  • Nor does it have an update mechanism yet

  • Nor does it know how to build a png icon from the svg so ./artwork/blue-log-viewer.png is missing

* Running the build script will use Docker to start a svg to png converter for making the icon

To bypass icon creation run ./tools/app-image-create.sh (Run ./icon-svg-to-png.sh to just build the png)

blue-log-viewer's People

Contributors

nshiell avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

blue-log-viewer's Issues

How to compile it for armhf platforms

Hello,
I compiled the application successfully on my Ubuntu laptop. It even ran smoothly. I cannot run it on my raspberry pi which was my ultimate goal. Can you please identify a way to compile it for armhf platforms?

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.