Mobile First - 如何根据会话细分日志 [英] Mobile First - How to segmentate logs depending on the session

查看:132
本文介绍了Mobile First - 如何根据会话细分日志的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Mobile First v 7.0开发移动银行解决方案,其中一个要求是将客户的日志隔离在专用日志文件中,该文件会在启动会话后创建,以便按会话跟踪所有详细信息。
是否可以做这样的事情?

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 ?

我正在使用Liberty profile v 8.5,我想知道它是否在Liberty中处理或者有什么可以是从Mobile First角度完成。

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.

推荐答案

这与MobileFirst无关,而是与处理日志创建的底层应用程序服务器有关。 AFAIK不是WebSphere完整配置文件,也不是WebSphere Liberty配置文件提供了根据内容分隔日志的能力。

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.

你可以做的是创建你自己的工具/脚本,它将会结束messages.log文件将根据特定前缀(表示该日志行类型的数字,例如123456E)将日志行复制到另一个文件。没有这些前缀的现成列表,但您可以在messages.log文件中自行找到它们。

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.

这篇关于Mobile First - 如何根据会话细分日志的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆