Mobile First - How to segmentate logs depending on the session

这一生的挚爱 提交于 2019-12-11 12:34:36

问题


I'm working on a mobile banking solution using Mobile First v 7.0 and one of the requirements is to isolate the customer's logs in a dedicated log file which gets created once a session is started to track all the details by session. Is it possible to do such thing ?

I'm using Liberty profile v 8.5 and I wonder if it's handled in Liberty or there is something which can be done from Mobile First perspective.


回答1:


This is not related to MobileFirst but to the underlying application server that handles the logs creation. AFAIK not WebSphere full profile nor WebSphere Liberty profile provide the ability to separate logs based on their contents.

What you could do is create your own tool/script that will go over the messages.log file and will copy out log lines to another file based on the specific prefixes (the number that denotes that type of the log line, for example "123456E"). There is no ready list of such prefixes, but you can find them on your own in the messages.log file.



来源:https://stackoverflow.com/questions/30638172/mobile-first-how-to-segmentate-logs-depending-on-the-session

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!