This section describes logs for business systems that have integrated mpaasgw-spi-mpc or mpaasgw-spi-dubbo.
API summary log
Log path: ~/logs/mobileservice/page-digest.log
Log printing time
operationType
Client productId
Client productVersion
Execution time (in ms)
Result (Y/N)
Result code
uniqueId
Format:
Time - (operationType,productId,productVersion,Execution time,Result (Y/N),Result code,uniqueId)
Example:
2017-09-12 11:15:57,700 - (com.alipay.gateway.test,ANT_CLOUD_APP,3.0.0.20171214,36 ms,Y,1000,79c731d5150518615768657974443)
SPI startup log
Log path: ~/logs/mobileservice/boot.log
The startup log records the registration and startup status of the mobileservice business system. It is divided into the following six stages:
Start-To-Register-Service: Starts parsing API service interfaces.
Start-To-Analyze-Method: Starts parsing methods in the API service interfaces.
Analyze-Method-Parameter: Parses method parameters.
Method-Info: Method information.
Registered-OperationType: A single API operationType is registered.
Register-Service-Success: All API operationTypes in this interface are registered.
This log helps you check whether an operationType is successfully registered.
Example:
2017-12-20 11:25:59,746 [Start-To-Register-Service] target: com.alibaba.mpaasgw.biz.shared.rpctest.MockRpcImpl@5b490d5e, interface: interface com.alibaba.mpaasgw.biz.shared.rpctest.MockRpc
2017-12-20 11:25:59,771 [Start-To-Analyze-Method] method=mock
2017-12-20 11:25:59,780 [Analyze-Method-Parameter] parameters=["s"]
2017-12-20 11:25:59,839 [Method-Info] MethodInfo[paramCount=1,paramType={class com.alibaba.mpaasgw.biz.shared.rpctest.MockRpc$Req},paramNames={s},returnType=class com.alibaba.mpaasgw.biz.shared.rpctest.MockRpc$Resp,target=com.alibaba.mpaasgw.biz.shared.rpctest.MockRpcImpl@5b490d5e,method=public abstract com.alibaba.mpaasgw.biz.shared.rpctest.MockRpc$Resp com.alibaba.mpaasgw.biz.shared.rpctest.MockRpc.mock(com.alibaba.mpaasgw.biz.shared.rpctest.MockRpc$Req),interfaceClass=interface com.alibaba.mpaasgw.biz.shared.rpctest.MockRpc]
2017-12-20 11:25:59,839 [Registered-OperationType] operationType=com.alipay.sofa.mock
2017-12-20 11:25:59,840 [Register-Service-Success] target=com.alibaba.mpaasgw.biz.shared.rpctest.MockRpcImpl@5b490d5e, interface=interface com.alibaba.mpaasgw.biz.shared.rpctest.MockRpcAPI monitoring log
Log path: ~/logs/mobileservice/monitor.log
Records detailed logs for API requests. These logs include debug information and exception stacks for any faults.
SPI default log
Log path: ~/logs/mobileservice/common-default.log
These are the default SPI logs. They contain records from instrumentation points that do not specify a particular log file.
SPI error log
Log path: ~/logs/mobileservice/common-error.log
Records errors and exception stacks.