All Products
Search
Document Center

Mobile Platform as a Service:Gateway SPI logs

Last Updated:Apr 26, 2023

The log description in this section is specific for the business systems which 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

  • Time span (ms)

  • Result (Y/N)

  • Result code

  • uniqueId

Format:

Time - (operationType,productId,productVersion,time span,result (Y/N),result code,uniqueId)

Sample:

2017-09-12 11:15:57,700 - (com.alipay.gateway.test,ANT_CLOUD_APP,3.0.0.20171214,36ms,Y,1000,79c731d5150518615768657974443)

SPI boot log

Log path: ~/logs/mobileservice/boot.log

The boot log records the registration and startup process of the business system mobileservice. The process falls into the following stages:

  • Start-To-Register-Service: Start parsing API service interface

  • Start-To- Analyze- Method: Start parsing methods in the API service interface

  • Analyze-Method-Parameter: Parse method parameters

  • Method-Info: Method information

  • Registered-OperationType: Complete registering single API operationType

  • Register-Service-Success: Complete registering all API operationType in the interface

You can check if operationType is successfully registered by viewing this log.

Sample:

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.MockRpc

API monitor log

Log path: ~/logs/mobileservice/monitor.log

The API monitor log records API requests, including the API requests’ debug log and the exception stacks in case of errors.

SPI default log

Log path: ~/logs/mobileservice/common-default.log

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

SPI error log

Log path: ~/logs/mobileservice/common-error.log

The log records errors and exception stacks.