English 中文(简体)
B. 采用网络学做法
原标题:Customizing Weblogic HTTP extended logging format

目前,在我的网络服务器中,我已使吉大港山区伐木。 下面是目前的组合。

格式是“预期”。

扩大的伐木形式领域是“时间c-method cs-uri sc-status time-taken c-ip”

因此,在接触过程中,原木也一样。

current

2018-01-18      11:39:19        GET     /test/service       200     1.406 127.0.0.1
2018-01-18      11:39:19        POST    /test/service      200 0.169    127.0.0.1

我想要改变伐木方式。 象下述关键数值乳制品一样:

<>光>

date=2018-01-18      time=11:39:19        method=GET     uri=/test/service       status=200     duration=1.406      client_ip=127.0.0.1
date=2018-01-18      time=11:39:19        method=POST    uri=/test/service       status=200     duration=0.169      client_ip=127.0.0.1

是否可以修改上述出入记录格式?

如果可能的话,如何在扩展的伐木形式领域添加这些关键内容?

网络服务器版本:12.1.2 &12.2.1

关于

Nadz

问题回答

Everything is explain in this documentation. You can create your own custom fields and make them display whatever you need.

是的,但你将撰写一些 Java。

为了让服务器花很长的时间向客户发出答复,使用以下代码:

long milsec = System.currentTimeMillis() - metrics.getInvokeTime();

Float sec = new Float(milsec / 1000.0);




相关问题
Best logging approach for composite app?

I am creating a Composite WPF (Prism) app with several different projects (Shell, modules, and so on). I am getting ready to implement logging, using Log4Net. It seems there are two ways to set up the ...

How to make logging.debug work on Appengine?

I m having a tough time getting the logging on Appengine working. the statement import logging is flagged as an unrecognized import in my PyDev Appengine project. I suspected that this was just an ...

How to validate Java logging properties files?

I have a basic facility for allowing users to remotely apply changes to the logging files in my application. Some logs are configured using java.util.logging properties files, and some are configured ...

Logging SAS scripts

I ve been developing a lot of Java, PHP and Python. All of which offer great logging packages (Log4J, Log or logging respectively). This is a great help when debugging applications. Especially if the ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

热门标签