Best way to log POST data in Apache?

前端 未结 8 1371
隐瞒了意图╮
隐瞒了意图╮ 2020-11-27 04:40

Imagine you have a site API that accepts data in the form of GET requests with parameters, or as POST requests (say, with standard url-encoded, &-separated POST data).

8条回答
  •  难免孤独
    2020-11-27 04:57

    I would do it in the application, actually. It's still configurable at runtime, depending on your logger system, of course. For example, if you use Apache Log (log4j/cxx) you could configure a dedicated logger for such URLs and then configure it at runtime from an XML file.

提交回复
热议问题