CoinAlpha / gateway-api

Apache License 2.0
47 stars 25 forks source link

Feat / logger to save info, warning, error to local log files #31

Closed gyozajiro closed 3 years ago

gyozajiro commented 3 years ago

Add logger to save info, warning, error to local log files.

gyozajiro commented 3 years ago

Currently logs/app.log will capture all info, error logs. I'll find out how to filter out error log in the app.log.

Note that development branch has been updated to use the decimal param in the request. Please refer to the test/postman/Gateway-Ethereum-Base.postman_collection.json file for updated params.

gyozajiro commented 3 years ago
# capture any info type logging
logs/app.log

# capture any error type logging
logs/error.log

# capture any unhandled exceptions
logs/rejection.log
fengtality commented 3 years ago

Currently logs/app.log will capture all info, error logs. I'll find out how to filter out error log in the app.log.

I think it's good that app.log contains all log messages, including errors.

RC-13 commented 3 years ago

Tested and confirmed by QA

Test summary: