You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by sa...@apache.org on 2006/02/03 13:02:54 UTC
svn commit: r374645 - /webservices/axis2/trunk/c/modules/util/log.c
Author: sahan
Date: Fri Feb 3 04:02:49 2006
New Revision: 374645
URL: http://svn.apache.org/viewcvs?rev=374645&view=rev
Log:
Fixed not logging into a file
Modified:
webservices/axis2/trunk/c/modules/util/log.c
Modified: webservices/axis2/trunk/c/modules/util/log.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/util/log.c?rev=374645&r1=374644&r2=374645&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/util/log.c (original)
+++ webservices/axis2/trunk/c/modules/util/log.c Fri Feb 3 04:02:49 2006
@@ -88,7 +88,7 @@
log_file_name[len*sizeof(axis2_char_t) - sizeof(axis2_char_t)] = '\0';
printf("default file name = %s\n",log_file_name);
}
- log_impl->stream = axis2_file_handler_open("axis2.log","w");
+ log_impl->stream = axis2_file_handler_open(log_file_name,"w");
log_impl->log.enabled = 1;
@@ -187,6 +187,7 @@
fprintf(fd,"%s %s(%d) %s\n", level_str, file, line, value);
else
fprintf(fd,"%s %s\n", level_str, value);
+ fflush(fd);
return 0;
}