すべて、Javaでのログファイルの解析
以下の内容のログファイルがあります。
Request from Centercord.
2010-12-14 12:42:13.724 [ 6796] ****************************
2010-12-14 12:42:13.724 [ 6796] 1111111111111111
2010-12-14 12:42:13.724 [ 6796]22222222222
Response from Centercord.
2010-12-14 12:42:21.802 [ 5960] 11111111111111
2010-12-14 12:42:21.802 [ 5960] ffffffffffffffffffffffffffff
2010-12-14 12:42:21.802 [ 5960] tttttttttttttttttttttttttttt
Request from Centercord.
2010-12-14 12:42:13.724 [ 6796] ****************************
は、私は1つは、すべての要求の詳細情報を格納するためのものである2つのログ・ファイルを作成する必要があり、他の一つは、すべてのレスポンスの詳細情報を格納するためのものです。これを解析して2つのログファイルを準備するにはどうすればよいですか。
私は以下の回答が必要です。
Log 1:
Request from Centercord.
2010-12-14 12:42:13.724 [ 6796] ****************************
2010-12-14 12:42:13.724 [ 6796] 1111111111111111
2010-12-14 12:42:13.724 [ 6796]22222222222
2010-12-14 12:42:13.724 [ 6796] ****************************
Log 2:
Response from Centercord.
2010-12-14 12:42:21.802 [ 5960] 11111111111111
2010-12-14 12:42:21.802 [ 5960] ffffffffffffffffffffffffffff
2010-12-14 12:42:21.802 [ 5960] tttttttttttttttttttttttttttt
よろしく、 Kanagaraj
を、あなたは私にいくつかのサンプルコードをお願いしてもらえますか? – user454894