Skip to main content

NDJSON formatted logger integration with Sanic

Project description

entry-logger-sanic

PyPI PyPI - Python Version

A logger for Sanic based EntryDSM service

Install

pip install entry-logger-sanic

Feature

  • Request logging
  • System logging
  • File saving in NDJSON format

Usage

from sanic import Sanic
from entry_logger_sanic import set_logger

app = Sanic("SERVICE NAME")  # please specify service name!
set_logger(app)

...

Versioning

{Major}.{Minor}.{Patch}

ex: 0.2.3

  • Major: without subcompatibility
  • Minor: with partial subcompatibility
  • Patch: with full subcompatibility

Maintainer

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

entry-logger-sanic-0.0.2.tar.gz (3.0 kB view details)

Uploaded Source

File details

Details for the file entry-logger-sanic-0.0.2.tar.gz.

File metadata

  • Download URL: entry-logger-sanic-0.0.2.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.2

File hashes

Hashes for entry-logger-sanic-0.0.2.tar.gz
Algorithm Hash digest
SHA256 3c2dd998ba9ac5a8f2db9ab6e2a32451f42dca13b8eaeb8d77916e499192956d
MD5 b78e67d0f1c23ab52020695e55c5b6e9
BLAKE2b-256 496567d6d7c8e61e7d46f27062348e1a893e3385bd75d360e73dcfa7f32280dd

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