Skip to main content

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

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

Versioning

{Major}.{Minor}.{Patch}

ex: 0.2.3

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

Maintainer

Metadata

Release files for entry-logger-sanic 0.1.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for entry-logger-sanic 0.1.7
File Size Uploaded Provenance Actions
entry-logger-sanic-0.1.7.tar.gz 3.7 kB Without provenance Details for entry-logger-sanic-0.1.7.tar.gz

Release files / entry-logger-sanic-0.1.7.tar.gz

Download URL entry-logger-sanic-0.1.7.tar.gz
Size 3.7 kB
Tags Source
SHA-256 checksum
How to use checksums
54f8776e2f4b480ed57fb4cbe492829b4d5e29cc3cf595a719112f801a5fb13f
BLAKE2b-256 checksum
How to use checksums
7d0abbb3719601b9c5e2c363a0a7a059e449bdfec9d73be9443d959364fab00a
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for entry-logger-sanic 0.1.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page