diff options
| author | Paul Buetow <paul@buetow.org> | 2013-04-06 13:14:43 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2013-04-06 13:14:43 +0200 |
| commit | f038883a6e004eb4312ba1e761da06b596e14d3f (patch) | |
| tree | 358f989cac07885cfa913c66a0d563d18c021b26 /src/logd.cpp | |
| parent | 98eac951f8087b213f5850bd126dcb279db360a8 (diff) | |
tagging ychat-0.7.7.0ychat-0.7.7.0
Diffstat (limited to 'src/logd.cpp')
| -rwxr-xr-x | src/logd.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/logd.cpp b/src/logd.cpp index e120fd8..b572a42 100755 --- a/src/logd.cpp +++ b/src/logd.cpp @@ -35,9 +35,6 @@ logd::initialize( string s_filename, int i_log_lines ) exit(1); } - //if (wrap::NCUR->is_ready()) - // wrap::system_message(LOGGINI+s_filename); - s_logfile = s_filename; i_lines = i_log_lines; } @@ -60,6 +57,7 @@ void logd::flush() { ofstream of_output; + of_output.open(s_logfile.c_str(), ios::app); if( of_output == NULL ) @@ -79,10 +77,8 @@ logd::flush() } void -logd::log_access( map<string,string> &map_request ) +logd::log_access( hashmap<string> &map_request ) { - //static int i_access_lines = wrap::CONF->get_elem("httpd.logging.accesslines"); - string s_time = get_time_string(); string s_logstr = map_request["REMOTE_ADDR"] + " - - "+s_time+" \"" + map_request["QUERY_STRING"]+"\" 200 0 \""+map_request["request"]+"\" \""+map_request["User-Agent"]+"\"\n"; |
