Skip to content

oohlalog/oohlalog_pip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Oohlalog Python Plugin

Getting Started

First install Oohlalog from pypi

  • pip install Oohlalog

Next initialize the custom logger into your api:

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'))

Test it out!

Here are some sample log calls (same as any logging you already have) that will be forwarded to Oohlalog

logs.info('test info')
logs.debug('test debug')
logs.warning('test warning')
logs.error('test error')
logs.critical('test critical')

now go check Oohlalog for the logs

Oohlalog configuration options:

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

Required

  • apiKey = OohLaLog Api Key

Optional

About

OohLaLog Python Logging Plugin

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages