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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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