Skip to main content

Logr client library for Python.

Project description

Logr client library for Python.

pip install logrpy

Available logger methods

  • logger.emerg

  • logger.alert

  • logger.crit

  • logger.error

  • logger.warn

  • logger.notice

  • logger.info

  • logger.debug

Available counter methods

  • counter.inc

  • counter.avg

  • counter.max

  • counter.min

  • counter.per

  • counter.time

  • counter.snippet bonus method!

Example

from logrpy import Logr

conf = Logr(
    ('127.0.0.1', 7776),
    'MCAwDQYJKoZIhvcNAQEBBQADDwAwDAIFAMg7IrMCAwEAAQ==',
    'MC0CAQACBQDIOyKzAgMBAAECBQCHaZwRAgMA0nkCAwDziwIDAL+xAgJMKwICGq0=',
)

logger = conf.getlogger('hello.log')

# Send log
logger.info('Hello, Logr!')
logger.debug('It`s cool!')

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

logrpy-1.0.14.tar.gz (5.3 kB view details)

Uploaded Source

File details

Details for the file logrpy-1.0.14.tar.gz.

File metadata

  • Download URL: logrpy-1.0.14.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/3.8

File hashes

Hashes for logrpy-1.0.14.tar.gz
Algorithm Hash digest
SHA256 ac00fe89befa8fe0698b365020b5819b7d9044751f7739894d4f3875337c0c98
MD5 c47614ad4e499f389f3762df62e1d7a1
BLAKE2b-256 b2801568ccc37b9b10030e983ce7447f73b5d9e37da15e320cf6b81cd5f403ea

See more details on using hashes here.

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