Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Watch and upload log files to log.fit

Project Description

The LogFit daemon watches log files and sends data to the LogFit app for analysis.

Installation

TODO

Usage

# Start in foreground mode
python3 logfit/client.py [run|foreground]

# Start in daemon mode
python3 logfit/client.py start

# Stop daemon
python3 logfit/client.py stop

# Restart the daemon
python3 logfit/client.py restart

# Get the daemon status
python3 logfit/client.py status

Configuration

The daemon can read from a logfit_config.yaml config file of the format:

# Required: Get this from your log.fit account
source: "64a4b9bd88f14511926e0de86f23e2d8"

# Optional: The directory the daemon will watch
watch_directory: "/var/log/"

# Optional: Minimum log level.  Possible options are
# critical, error, warning, info, and debug
log_level: "warning"

# Optional: File to write daemon logs to
log_file: "logfit.log"

# Optional: limit watching log files to given mime types
allowed_mime_types:
- text/plain
- inode/x-empty

# Optional: List of file globs to not watch, should be the
# full absolute path
ignore_paths: []

Development

pip install -r requirements-test.txt
coverage run setup.py test
coverage report
flake8

Publishing

# Publish to PyPI
python setup.py sdist bdist_wheel
twine upload dist/*

# Generate binaries for multiple operating systems
pyinstaller logfit/main.py -F -p logfit --hidden-import queue -n logfit_linux_x86_64
pyinstaller logfit/main.py -F -p logfit --hidden-import queue -n logfit_macos_x86_64
pyinstaller logfit/main.py -F -p logfit --hidden-import queue -n logfit_windows_x86_64

# Copy binaries into logfit-daemon-binary
Release History

Release History

This version
History Node

1.0.0

History Node

0.4.0

History Node

0.3.0

History Node

0.2.1

History Node

0.2.0

History Node

0.1.0

History Node

0.0.6

History Node

0.0.5

History Node

0.0.4

History Node

0.0.3

History Node

0.0.2

History Node

0.0.1

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
logfit-1.0.0-py3-none-any.whl (10.9 kB) Copy SHA256 Checksum SHA256 py3 Wheel Sep 17, 2017
logfit-1.0.0.tar.gz (7.8 kB) Copy SHA256 Checksum SHA256 Source Sep 17, 2017

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting