WSO2 Api Manager:如何记录服务 [英] WSO2 Api Manager: How to log the services
问题描述
我如何查看(在Carbon控制台中或在File中)订阅者使用的服务?我需要设置日志级别吗?我可以查看一段时间内每项服务消耗的服务总量吗?
How can I view (in carbon console or in a File) the services that are consumed by subcribers? Do I need to set a log-level? Can I see the total amount of services consumed per service of a period?
推荐答案
在Carbon控制台中,您可以设置启用消息跟踪".如果启用消息跟踪并启用日志记录,那么carbon.log文件中将填充消息;
In the Carbon Console you could set Enable Message Tracing. If you enable message tracing AND Enable logging, the carbon.log file is filled with messages;
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.
要启用运行时统计信息,您应该启用带有API的BAM
To enable runtime statistics you should enable BAM with API
这篇关于WSO2 Api Manager:如何记录服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!