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
Hashes for algomax_common-0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 798a8fef78478f5cae73082c788598037d37bb19bc88758705417c59566babe5 |
|
MD5 | ee0567f0c10ccc4871b48bfde1b2e619 |
|
BLAKE2b-256 | d15d9860bad2bfe49ed70c4e50c0089705e1b4f97344518f97162cedb21c727a |