Skip to content

example of using uber zap in aoe storage layer - #358

Closed
zzl200012 wants to merge 2 commits into
matrixorigin:mainfrom
zzl200012:logger-for-db
Closed

zzl200012 wants to merge 2 commits into
matrixorigin:mainfrom
zzl200012:logger-for-db

Conversation

@zzl200012

Copy link
Copy Markdown
Contributor

example of using uber zap in aoe storage layer
usage

  • use structured logging (Info, Debug, etc) as possible, only use formatted logging in Debug level.
  • major features are all included, others like log sampling, multi-file logging could be implemented by adding config file items or using multiple logger instances
  • dynamic level change is supported, we can query the current log level by curl localhost:9090/change/level (address is configurable), and as an example, modify the level by curl -XPUT localhost:9090/change/level -d '{"level":"debug"}' to change the level to debug

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants