Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API logging #802

Closed
abitmore opened this issue Apr 1, 2018 · 2 comments
Closed

API logging #802

abitmore opened this issue Apr 1, 2018 · 2 comments

Comments

@abitmore
Copy link
Member

abitmore commented Apr 1, 2018

We need a way to log API calls for analysis, trouble shooting and optimization.
https://en.wikipedia.org/wiki/Server_log
https://www.sumologic.com/blog/it-operations/apache-logs-vs-nginx-logs/

@abitmore
Copy link
Member Author

abitmore commented Apr 2, 2018

It turns out that rpc logging can be enabled by appending these to config.ini:

# declare an appender named "rpc" that writes messages to rpc.log
[log.file_appender.rpc]
filename=logs/rpc/rpc.log
# filename can be absolute or relative to this config file

# route messages sent to the "rpc" logger to the rpc appender declared above
[logger.rpc]
level=debug
appenders=rpc

About log level:

  • level=error : logs errors
  • level=warn : logs requests
  • level=info : logs responses

@abitmore
Copy link
Member Author

Done with #919.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant