CoinAlpha / gateway-api

Apache License 2.0
47 stars 25 forks source link

Improved logging for Hummingbot Gateway #29

Closed dennisocana closed 3 years ago

dennisocana commented 3 years ago

As discussed during the planning meeting, we've been testing from source but when we use Docker unless we're using debug mode it's harder to look at the data and reproduce issues like HTTP status 500.

On the gateway side, we don't have the same level of logging as Hummingbot where we have a traceback. @sdgoh suggested this and has started looking into this enhancement. Created this story for tracking and to discuss a better logging between gateway and Hummingbot client.

gyozajiro commented 3 years ago

I added the logger support to log all info, error, unhandled exceptions to local files.

# capture any info type logging
logs/app.log

# capture any error type logging
logs/error.log

# capture any unhandled exceptions
logs/rejection.log

PR: https://github.com/CoinAlpha/gateway-api/pull/31

gyozajiro commented 3 years ago

Re-opened to add daily log file rotation, log path base-on env variable and GMT time offset for logger.

gyozajiro commented 3 years ago

Hummingbot PR for Gateway docker install script: https://github.com/CoinAlpha/gateway-api/pull/32