This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description
Save logs records in postgres.
Log record can contain any num of fields.
Logs format in the table:
data TEXT
{"field1": "value", "field2": "value", "field3": "value"}

# example of use
from pglogs.models import Pg, LogRecord

pg = Pg('pglogs', 'pglogs_user', '', 'qwerty')

log = LogRecord(pg)
log.set_field('chef_request', """'{}[[[]dfdfd''']]--pdfdfdfdfd\\SOME HACKER BEEN HERE}'""")
log.set_field('proxy_response', """dfdg'gfgfd'g'dsgd\'gfsdfg\'gdf/dgfd/fdg/f/dgd'\"\\''''""")

# example of use for log Flask requests
from pglogs.models import Pg, LogRecord
from pglogs.utils import pack_request_log
from flask import Flask, request, g

app = Flask(__name__)
pg = Pg('pglogs', 'pglogs_user', '', 'qwerty')

def init_request_log():
if not hasattr(g, 'log'):
g.log = LogRecord(pg)

def hello():
return "Hello World!"

if __name__ == "__main__":
Release History

Release History


This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
pglogs-0.1.5.tar.gz (5.2 kB) Copy SHA256 Checksum SHA256 Source Mar 14, 2014

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development 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