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)
Built Distribution
Close
Hashes for fyers_logger-0.1.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ecd8bde8b3dc9aa3e92e052c385e14a3e06a546652331e6a5b1a566bfa9d8bdb |
|
MD5 | 00ef74afc184c8204633b7ec3a300957 |
|
BLAKE2b-256 | 2d8c806fc5cacbb8519384517e6fb98bbe976fb4fdc713b4850cd96917d5c2a9 |