简体   繁体   English

WSO2 Api Manager:如何记录服务

[英]WSO2 Api Manager: How to log the services

How can I view (in carbon console or in a File) the services that are consumed by subcribers? 如何查看(在Carbon控制台中或在File中)订阅者使用的服务? Do I need to set a log-level? 我需要设置日志级别吗? Can I see the total amount of services consumed per service of a period? 我可以查看一段时间内每项服务消耗的服务总量吗?

In the Carbon Console you could set Enable Message Tracing. 在Carbon控制台中,您可以设置“启用消息跟踪”。 If you enable message tracing AND Enable logging, the carbon.log file is filled with messages; 如果启用消息跟踪并启用日志记录,carbon.log文件将填充消息;

TID: [0] [AM] [2014-04-18 13:32:48,026]  INFO {org.wso2.carbon.bam.message.tracer.handler.util.HandlerUtils} -  
Massage Info: Transaction id=62078996748661323020575  Message direction=IN  Server name=nxt-fon-app01.nl.rsg  Timestamp=1397820768026  
Service name=__SynapseService  Operation Name=mediate {org.wso2.carbon.bam.message.tracer.handler.util.HandlerUtils} 
TID: [0] [AM] [2014-04-18 13:32:48,046]  INFO {org.wso2.carbon.bam.message.tracer.handler.util.HandlerUtils} -  
Massage Info: Transaction id=62078996748661323020575  Message direction=OUT  Server name=nxt-fon-app01.nl.rsg  Timestamp=1397820768046  
Service name=__SynapseService  Operation Name=mediate {org.wso2.carbon.bam.message.tracer.handler.util.HandlerUtils}

This information is limited you see in incoming call and outgoing call event, but you do not see which service. 您在传入呼叫和传出呼叫事件中看到的此信息是受限制的,但是看不到哪个服务。

WSO2 API消息跟踪

To enable runtime statistics you should enable BAM with API 要启用运行时统计信息,您应该使用API启用BAM

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM