X-Git-Url: http://lists.indexdata.com/cgi-bin?a=blobdiff_plain;f=src%2Ffilter_log.cpp;h=a1baf483f6a479271ba0b2f871b1156fb16264e7;hb=5beddc7e2432ca7eda40eacf025e9bbbbc026a86;hp=2acf9567f8b357fde9625c5a43f8849c2ba469be;hpb=e207284fc2943aa6a933cf3405f60bcdc584280d;p=metaproxy-moved-to-github.git diff --git a/src/filter_log.cpp b/src/filter_log.cpp index 2acf956..a1baf48 100644 --- a/src/filter_log.cpp +++ b/src/filter_log.cpp @@ -1,9 +1,10 @@ -/* $Id: filter_log.cpp,v 1.24 2006-08-30 08:35:47 marc Exp $ +/* $Id: filter_log.cpp,v 1.26 2006-08-31 12:56:40 marc Exp $ Copyright (c) 2005-2006, Index Data. See the LICENSE file for details */ +#include "filter_log.hpp" #include "config.hpp" #include "package.hpp" @@ -15,7 +16,6 @@ #include "gduutil.hpp" #include "util.hpp" #include "xmlutil.hpp" -#include "filter_log.hpp" #include #include @@ -58,10 +58,11 @@ namespace metaproxy_1 { yf::Log::Rep::Rep() { - m_req_apdu = true; - m_res_apdu = true; - m_req_session = true; - m_res_session = true; + m_access = true; + m_req_apdu = false; + m_res_apdu = false; + m_req_session = false; + m_res_session = false; m_init_options = false; openfile(""); } @@ -98,10 +99,6 @@ void yf::Log::process(mp::Package &package) const = boost::posix_time::microsec_clock::local_time(); - //std::ostringstream msg_request; - //std::ostringstream msg_request_2; - //std::ostringstream msg_response; - //std::ostringstream msg_response_2; // scope for locking Ostream { @@ -114,10 +111,12 @@ void yf::Log::process(mp::Package &package) const if (gdu) { m_p->m_file->out + //<< receive_time << " " + //<< to_iso_string(receive_time) << " " + << to_iso_extended_string(receive_time) << " " << m_p->m_msg_config << " " - << receive_time << " " << package << " " - << "00:00:00.000000" << " " + << "000000.000000" << " " << *gdu << "\n"; } @@ -178,10 +177,12 @@ void yf::Log::process(mp::Package &package) const if (gdu) { m_p->m_file->out + //<< send_time << " " + //<< to_iso_string(send_time) << " " + << to_iso_extended_string(send_time) << " " << m_p->m_msg_config << " " - << send_time << " " << package << " " - << duration << " " + << to_iso_string(duration) << " " << *gdu << "\n"; }