Skip to main content

NewRelic logger with headerless logging api

Project description

NewRelic Logger

Python Logo

A simple project to log data to NewRelic using its headerless logging api along with built-in logging.

The project was intended to send logs to both original monitoring tool and NewRelic

Installing

pip install new-relic-logger

Usage example

import logging
from new_relic_logger import NewRelicLogger

...
logger = NewRelicLogger(
    api_key=<API_KEY_HERE>,
    hostname=<HOST_NAME_HERE>,
    service=<SERVICE>,
    enable_built_in_logging=True,
)

logger.info("Updated User Object!")
...
logger.warning("Primary key for user object is not set yet!")
...
logger.error("Failed to retrive user profile!")

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

new_relic_logger-0.3.tar.gz (4.1 kB view details)

Uploaded Source

File details

Details for the file new_relic_logger-0.3.tar.gz.

File metadata

  • Download URL: new_relic_logger-0.3.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.10

File hashes

Hashes for new_relic_logger-0.3.tar.gz
Algorithm Hash digest
SHA256 e6be6e7a61e9cbd55dd028075b9f4b01a849d62f9672cc1e61ece29f15827d1c
MD5 6d1b37f3c9fac17a7d18591633ab4a51
BLAKE2b-256 30a0de68dc0d047caeb88932e10ff070535de68296cb78832d387117931312c0

See more details on using hashes here.

Supported by

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