Skip to main content

NDJSON formatted logger integration with Sanic

Project description


PyPI PyPI - Python Version

A logger for Sanic based EntryDSM service


pip install entry-logger-sanic


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


import os
from sanic import Sanic
from entry_logger_sanic import set_logger

log_path = os.path.dirname(__file__).replace("/service", "").replace("/currentdir", "")  # example

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


The log file will be saved under {designated path}/log as {given service name}.log



ex: 0.2.3

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


Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for entry-logger-sanic, version 0.1.7
Filename, size File type Python version Upload date Hashes
Filename, size entry-logger-sanic-0.1.7.tar.gz (3.7 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page