a common package for algomax-cli and algomax-engine
Project description
Algomax-Common
A common tools for working with algomax-cli and algomax-engine.
install the package with bellow command:
-> pip install algomax-common
Logging
Adding logging to your Python program is as easy as this:
from algomax_common.logger import AMLogger
Initiate the logger
add below code on top of your programs file
AMLogger.init()
and, use it:
AMLogger.info('order created successfully', extra=with_this_data)
AMLogger.error('order creation failed', extra=order_data_and_error)
Note: extra is a dict
Explore log files
above code creates a directory named logs
in your project directory.
log directory structure:
logs
|____ error.json # contains AMLogger.error() records
|____ info.json # contains AMLogger.info() records
Project details
Release history Release notifications | RSS feed
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
File details
Details for the file algomax-common-0.2.tar.gz
.
File metadata
- Download URL: algomax-common-0.2.tar.gz
- Upload date:
- Size: 6.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bd9aed91f882eb9b1467944a49e8a0b75713372519f0d37c2bfe548ac3717987 |
|
MD5 | 78d1a767dac879579af746b5950d0056 |
|
BLAKE2b-256 | 209d5cc4f760c3646630fea754ee1c72ddb1956b4df85a790360c8cf5de1f326 |
File details
Details for the file algomax_common-0.2-py3-none-any.whl
.
File metadata
- Download URL: algomax_common-0.2-py3-none-any.whl
- Upload date:
- Size: 9.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dc08d5b14197bc1a598d3b4e9dfe6d98cf2187fb72bc5394118242f91fbc0df9 |
|
MD5 | 1d9c3f7e7095e885837b54710d894638 |
|
BLAKE2b-256 | 811eb3bf9cce808ce34a1b3d68ac8061d82e669deafad1027067a73c8eaf3b43 |