Operation logs

Create opration logs for restful api!

Config

  • default config name is operation.yaml .
  • you can use except and include to set which route you want to create or not create opreation log.
  • operation.yaml
except:
  method: post;put
  uri: api/v1/upload;api/v1/upload
include:
  method: get
  uri: api/v1/menus

Add middleware by Use()

  • index.Use(operation.OperationRecord())

Example