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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
78aeb163cf65dfd66aa1707dc94b2a4e8c68950825b86a861e34623179447110
|
|
| MD5 |
5d00dbc828db55b48cba11bcb51834a9
|
|
| BLAKE2b-256 |
83ff19c33c77505cc4fb8aec248e13a808e27abcd2554481e41477cf0cdf0ae8
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ecd8bde8b3dc9aa3e92e052c385e14a3e06a546652331e6a5b1a566bfa9d8bdb
|
|
| MD5 |
00ef74afc184c8204633b7ec3a300957
|
|
| BLAKE2b-256 |
2d8c806fc5cacbb8519384517e6fb98bbe976fb4fdc713b4850cd96917d5c2a9
|