Skip to main content

A live log streaming application

Project description

LiveLogs

Overview

LiveLogs is a real-time log streaming application designed to monitor and stream log files dynamically. It leverages Flask and SocketIO for web application and real-time communication, and uses Eventlet for asynchronous processing. The application allows users to observe log file changes live, making it ideal for monitoring applications, debugging, and operational insights.

Features

  • Real-Time Log Updates: Monitor log files as they are updated in real-time.
  • Configurable Log File Path: Specify the path to the log file you want to monitor.
  • Integration with Flask: Easily integrates with existing Flask applications.
  • SocketIO Support: Uses SocketIO for real-time communication between the server and clients.
  • Asynchronous Processing: Uses Eventlet for handling concurrent operations efficiently.

Installation

To install LiveLogs, you can use Poetry, a Python dependency manager:

poetry add livelogs

Or if you're using pip, you can install it from PyPI (if published) or directly from the repository:

pip install livelogs

Usage

  1. Command-Line Arguments: Run the application with command-line arguments to specify the log file and configuration options.
livelogs <path_to_log_file> [--name APP_NAME] [--port PORT] [--host HOST] [--debug]
  • <path_to_log_file>: Path to the log file to monitor.
  • --name APP_NAME: Name of the app to display in the header (default: App).
  • --port PORT: Port to run the app on (default: 5000).
  • --host HOST: Host to run the app on (default: 0.0.0.0).
  • --debug: Enable debug mode.
  1. Running the Application:

To run the application, use the command:

livelogs /path/to/your/logfile.log

This will start the LiveLogs application and begin streaming the specified log file.

Configuration

You can configure the application by modifying the app instance in livelogs/app.py. The configuration includes:

  • SECRET_KEY: Secret key for session management.
  • DEBUG: Enable or disable debug mode.

Development

To contribute to LiveLogs, clone the repository and set up your development environment:

git clone https://github.com/destinedcodes/livelogs.git
cd livelogs
poetry install

Run tests using:

poetry run pytest

License

LiveLogs is licensed under the MIT License.

Links

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

livelogs-0.1.6.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

livelogs-0.1.6-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

Details for the file livelogs-0.1.6.tar.gz.

File metadata

  • Download URL: livelogs-0.1.6.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.1.dev0+g94f810c.d20240510 CPython/3.12.4

File hashes

Hashes for livelogs-0.1.6.tar.gz
Algorithm Hash digest
SHA256 765575c82e2e6bedb2da62a6ffc304030f0c4aed5b5780b18348df455f886085
MD5 89e8e1232358d4e571ac9c1899324772
BLAKE2b-256 02edbf9b2f26ab40ef672285212e941fe0b209da7cdafd191ea0f5a2a01401e0

See more details on using hashes here.

File details

Details for the file livelogs-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: livelogs-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 6.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.1.dev0+g94f810c.d20240510 CPython/3.12.4

File hashes

Hashes for livelogs-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 b724d4a9ccb0dc18d2e691ff7ee8aad161c383dd6e383c60b91423106aa5ded8
MD5 a71a1f2f82883f03b88a7a3f72fe6417
BLAKE2b-256 e092cdbc35d1d363c3bc047157b5b681c0ba3bd5cd3b32f5d870df970232079c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page