Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install sentrylogs

How to install SentryLogs

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install sentrylogs
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
Windows (64-bit)
Mac OS X (10.5+)
Linux (32-bit)
0.0.9 Available View build log
Linux (64-bit)
0.0.9 Available View build log
 
License
LICENSE.txt
Dependencies
Lastest release
version 0.0.9 on Feb 27th, 2013

Sentry Logs allows you to send Logs to Sentry, only Nginx error log is currently supported, but I'm planning to extend the library to support more logs file.

How it works

To install sentrylogs you can use pip or easy_install:

pip install sentrylogs

or:

easy_install sentrylogs

This will install the module and you will have a new command line available:

sentrylogs -h


usage: sentrylogs [-h] [--follow FOLLOW] [--sentrydsn SENTRYDSN] [--daemonize]
                  [--nginxerrorpath NGINXERRORPATH]

Send logs to Django Sentry.

optional arguments:
  -h, --help            show this help message and exit
  --follow FOLLOW, -f FOLLOW
                        Which logs to follow, default ALL (for now only ALL is available)
  --sentrydsn SENTRYDSN, -s SENTRYDSN
                        The Sentry DSN string
  --daemonize, -d       Run this script in background
  --nginxerrorpath NGINXERRORPATH, -n NGINXERRORPATH
                        Nginx error log path

you must provide a Sentry DSN to make it works; at this moment you have 2 possibilities:

set up an environment variable:

$ export SENTRY_DSN="protocol://public:secret@example.com/#" $ sentrylogs

or use the --sentrydsn argument:

$ sentrylogs --sentrydsn "protocol://public:secret@example.com/#"

By defauld it will seach for nginx log at /var/log/nginx/error.log, but you can change it using --nginxerrorpath

If you use --daemonize the command will daemonize itself and will run in background.

Subscribe to package updates

Last updated Feb 27th, 2013

Download Stats

Last month:1

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.