Skip to main content

Introduction

The ox_log python package is used to do some very simple, lightweight log analysis (especially in the flask web framework).

If you want to do something complicated, there are lots and lots of log parsing, sending, and visualization tools. Unfortunately, some of those systems take some time to understand and setup.

If you just want a very simple, easy to setup system to show some information from your logs, then ox_log is for you!

Quickstart

First install ox_log using something like pip install ox_log or however you typically install python packages.

with flask

If you are using flask, you can add ox_log to your project simply by creating an instance of the ox_log blueprint and registering. For example, you could do something like

from ox_log.ui.flask_web_ui.ox_log import views as ox_log_views
from import ox_log.core import loader

ox_log_views.register(APP, readers={
    'pickle_reader': loader.PickleReader,
    'file_reader': loader.FileReader},
                      topics={
    '/tmp/log_items.pkl': 'pickle_reader',
    '/tmp/log.txt': 'file_reader'}

The first line will import the ox_log views so routes will be registered correctly. The second line imports the loader. The final line registers the ox_log blueprint and defines a couple of readers to read pickled data and text log files along with some specific topics. The APP variable is the flask app.

With the configuration above, you can point your browser to /ox_log after starting your flask app and refresh your data, view your logs, add or drop topics and so on.

Release files for ox_log 0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ox_log 0.2
File Size Uploaded
ox_log-0.2.tar.gz 17.8 kB Details

Release files / ox_log-0.2.tar.gz

Download URL ox_log-0.2.tar.gz
Size 17.8 kB
Tags Source
SHA-256 checksum
How to use checksums
0b36c78f9f46ed7337f91b88cb3bd4a4d1243fd4cf804b9ba520881f33d2d493
BLAKE2b-256 checksum
How to use checksums
5fd1c8669ff9b1122e9cb7e6e58124fe4adb01fa9c294c7775442171786fe63f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Python-urllib/3.6

Release history Release notifications | RSS feed

This release

0.2 This release

1 release file

0.1.1

1 release file

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page