Skip to main content

Useful remote logger api.

Project description

Oohlalog Python Plugin
========================
OohLaLogHandler(apiKey, threshold=100, timeout=5, formatter=None)

Required
------------
apiKey = OohLaLog Api Key

Optional
------------
threshold = number of logs before sending to OohLaLog
timeout = number of seconds to keep logs before sending to OohLaLog (overrides the threshold)
formatter = logging.Formatter (http://docs.python.org/2/library/logging.html#logging.Formatter) that overrides the default detail string sent to OohLaLog

========================
Python 2.7

import logging
from oohlalog import logger

logs = logging.getLogger('test')
logs.addHandler(logger.OohLaLogHandler('API_KEY'))

========================
Python 3

import logging
from py3 import logger

logs = logging.getLogger('test')
logs.addHandler(logger.OohLaLogHandler('API_KEY'))

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

Oohlalog-0.0.3.tar.gz (2.4 kB view hashes)

Uploaded Source

Supported by

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