Author Message
Raphael1001fly
Joined: Aug 20, 2020
Messages: 15
Offline
Hello friends,

Is it possible to break the trace.log or generate a separeted log file of the call by id of the call in other folder only with the ERROR lines, for exemple

/usr/local/tomcat/version/apache-tomcat-7.0.59/webapps/APP/data/trace.log

call 1
FTP_SERVER/data/id_call1.log
call 2
FTP_SERVER/data/id_call2.log
call 3
FTP_SERVER/data/id_call3.log
call 4
FTP_SERVER/data/id_call4.log

if yes, how could I do that, I need to do it by the ddlog4j.properties file, if yes how?


The reason is that we want to creat a webpage the when we put the id of the call, the web page shows the information inside the file of that call in special...

Do you understand?

Thanks in advance, I will be glad if someone had a solution for this or a made code to share..

Hugs :)

WilsonYu
Joined: Nov 6, 2013
Messages: 3950
Offline
It can't be done. I would just use an editor such as TextEdit or TextPad to parse it.
Raphael1001fly
Joined: Aug 20, 2020
Messages: 15
Offline
Thanks for the answer Wilson.

It would be perfect if there is a way in java to access this file, read the call id of the trace.log and save it as another log file in another folder, my question is have a Java script to to that.
Go to:   
Mobile view