All Products
Search
Document Center

Mobile Platform as a Service:Gateway server logs

Last Updated:Jan 28, 2021

Only private cloud users have the permission to check gateway logs in the server.

API summary log

Log path: ~/logs/gateway/gateway-page-digest.log

  • Log printing time
  • Request address
  • Response
  • Result (Y/N)
  • Time cost (ms)
  • operationType
  • System name
  • appId
  • workspaceId
  • Result code
  • Client productId
  • Client productVersion
  • Channel
  • User ID
  • Device ID
  • UUID
  • Client trackId
  • Client IP
  • Network protocol: HTTP or HTTP2
  • Data protocol: JSON or PB
  • Request size (byte)
  • Response size (byte)
  • Pressure test identifier
  • TraceId: The unique identifier of request. It can link up the summary log, detail log and exception log.
  • cpt identifier
  • Client system type
  • Back-end system time cost
  • clientIp type: 4 or 6
  • RPC protocol version: 1.0 or 2.0

Format:

Time - (request address,response,result (Y/N),time cost,operationType,system name,appId,workspaceId,result code,client productId,client productVersion,channel,user ID,device ID,UUID,client trackId,client IP,network protocol,data protocol,request size,response size,whether pressure test has been done,TraceId,whether it is a component API,Client system type,Back-end system time cost,IP protocol version,RPC protocol version)

Sample:

2020-06-03 14:14:08,001 - (/mgw.htm,response,Y,61ms,alipay.mcdp.space.initSpaceInfo,-,84EFA9A281942,default,1000,-,-,-,-,Wz4Zak5peDgDAGRNW5rFFGhT,Wz4Zak5peDgDAGRNW5rFFGhTN9uqCLa,Wz4Zak5peDgDAGRNW5rFFGhTN9uqCLa,223.104.210.136,HTTP,JSON,2,2406,F,0a1d76671591164847940829820658,T,ANDROID,61,4,2.0)

API detailed log

Log path: ~/logs/gateway/gateway-page-detail.log

The detailed log is divided into two categories:

  • Request log: [request]
  • Response log: [ response]

Request log

  • Log printing time
  • Client IP
  • TraceId
  • Log level
  • Log type: request
  • operationType
  • appId
  • workspaceId
  • requestData
  • sessionId
  • did: Device ID
  • contentType
  • mmtp: T or F, indicating whether to use MMTP protocol or not
  • async: T or F, indicating whether to implement asynchronous call

Response log

  • Log printing time
  • Client IP
  • TraceId
  • Log level
  • Log type: response
  • operationType
  • appId
  • workspaceId
  • responseData
  • resultStatus: Result code
  • contentType
  • sessionId
  • did: Device ID
  • mmtp: T or F, indicating whether to use MMTP protocol or not
  • async: T or F, indicating whether to implement asynchronous call

Sample:

  1. 2017-12-21 15:37:10,208 [100.97.90.113][79c731d51513841830208829314258] INFO - [request]operationType=com.alipay.gateway.test,appId=2A9ADA1045,workspaceId=antcloud,requestData=***,sessionId=-,did=WjtkmWe1uHsDADl7BEleyK2L,contentType=JSON,mmtp=F,async=T
  2. 2017-12-21 15:37:10,229 [][79c731d51513841830208829314258] INFO - [response]operationType=com.alipay.gateway.test,appId=2A9ADA1045,workspaceId=antcloud,responseData=***,resultStatus=1000,contentType=JSON,sessionId=-,did=WjtkmWe1uHsDADl7BEleyK2L,mmtp=F,async=T

API statistical log

Log path: ~/logs/gateway/gateway-page-stat-s.log

  • Log printing time
  • operationType
  • appId
  • workspaceId
  • Result: Y/N
  • Result code
  • Pressure test identifier
  • Total requests
  • Total time cost of requests (ms)

Format:

Time - operationType,appId,workspaceId,result (Y/N),result code,Pressure test identifier (T/F),total requests,total time cost of requests (ms)

Sample:

2017-12-21 15:34:58,419 - com.alipay.gateway.test,2A9ADA1045,antcloud,Y,1000,F,1,3

Gateway thread statistical log

Log path:~/logs/gateway/gateway-threadpool.log

  • Log printing time
  • Thread name
  • Number of active threads
  • Number of threads in the current thread pool
  • Historical maximum number of created threads
  • Number of core threads
  • Maximum number of threads
  • Task queue size
  • Remaining queue capacity

Format:

Time [thread name,ActiveCount,PoolSize,LargestPoolSize,CorePoolSize,MaximumPoolSize,QueueSize,QueueRemainingCapacity]

Sample:

2017-12-21 16:33:32,617 [gateway-executor,0,80,80,80,400,0,1000]

Gateway configuration log

Log path: ~/logs/gateway/gateway-config.log

The log records the notifications related with gateway configuration change.

Gateway default log

Log path: ~/logs/gateway/gateway-default.log

The events that haven’t been assigned to any specific log will be printed in this log.

Gateway error log

Log path: ~/logs/gateway/gateway-error.log

The log records errors and exception stacks.