Skip to main content

Fyers Internal Logging Library

Project description

README

This module is installed via pip:

pip install fyers-logger

Packages Required

  • aws-lambda-powertools

Usage

from fyers_logger import FyersLogger

logger = FyersLogger("ServiceName", "DEBUG")

Additional parameters

import logging
logger = FyersLogger("ServiceName", "DEBUG", logger_handler=logging.FileHandler("filename.log"))

Set parameters for a request

import uuid

logger.set_fyId("ABC123")
logger.set_requestId(f"{uuid.uuid4()}")

Clear data after every request

logger.clear_data()

Since this is an extension of the aws-lambda-powertools logger, all parameters supported by aws-lambda-powertools logger are supported. Documentation can be found here: https://awslabs.github.io/aws-lambda-powertools-python/latest/core/logger/

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

fyers-logger-0.1.7.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fyers_logger-0.1.7-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

Details for the file fyers-logger-0.1.7.tar.gz.

File metadata

  • Download URL: fyers-logger-0.1.7.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.10

File hashes

Hashes for fyers-logger-0.1.7.tar.gz
Algorithm Hash digest
SHA256 78aeb163cf65dfd66aa1707dc94b2a4e8c68950825b86a861e34623179447110
MD5 5d00dbc828db55b48cba11bcb51834a9
BLAKE2b-256 83ff19c33c77505cc4fb8aec248e13a808e27abcd2554481e41477cf0cdf0ae8

See more details on using hashes here.

File details

Details for the file fyers_logger-0.1.7-py3-none-any.whl.

File metadata

  • Download URL: fyers_logger-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 2.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.10

File hashes

Hashes for fyers_logger-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 ecd8bde8b3dc9aa3e92e052c385e14a3e06a546652331e6a5b1a566bfa9d8bdb
MD5 00ef74afc184c8204633b7ec3a300957
BLAKE2b-256 2d8c806fc5cacbb8519384517e6fb98bbe976fb4fdc713b4850cd96917d5c2a9

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