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
algomax-common-0.2.tar.gz
(6.0 kB
view hashes)
Built Distribution
Close
Hashes for algomax_common-0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dc08d5b14197bc1a598d3b4e9dfe6d98cf2187fb72bc5394118242f91fbc0df9 |
|
MD5 | 1d9c3f7e7095e885837b54710d894638 |
|
BLAKE2b-256 | 811eb3bf9cce808ce34a1b3d68ac8061d82e669deafad1027067a73c8eaf3b43 |