diff options
author | snowdrop | 2003-11-12 13:19:56 +0000 |
---|---|---|
committer | snowdrop | 2003-11-12 13:19:56 +0000 |
commit | 04a5ded5af30359ac7fc764d3cc9f9d0176ad81b (patch) | |
tree | 2f3551c12a016d7ba7a6222713b9a5614f6a4841 /src/csoaplog.c | |
parent | 340d39991f043631bd95a96c1a92e8403562720a (diff) | |
download | csoap-04a5ded5af30359ac7fc764d3cc9f9d0176ad81b.tar.gz csoap-04a5ded5af30359ac7fc764d3cc9f9d0176ad81b.tar.bz2 |
moved to libcsource/
Diffstat (limited to 'src/csoaplog.c')
-rw-r--r-- | src/csoaplog.c | 65 |
1 files changed, 0 insertions, 65 deletions
diff --git a/src/csoaplog.c b/src/csoaplog.c deleted file mode 100644 index 536d1a9..0000000 --- a/src/csoaplog.c +++ /dev/null @@ -1,65 +0,0 @@ -#include "csoaplog.h" - -#include <stdarg.h> -#include <stdio.h> - -static -void _SoapLogWrite(SoapLogLevel level, - const char* function, - const char* format, - va_list ap) -{ - char buffer[1054]; - char buffer2[1054]; - sprintf(buffer, "[%s] [%d] %s\n", function, level, format); - vsprintf(buffer2, buffer, ap); -/* printf(buffer2); - fflush(stdout); -*/ -} - - -void SoapTraceEnter(const char* function, - const char* format, ...) -{ - va_list ap; - - va_start(ap, format); - _SoapLogWrite(LOG_TRACE, function, format, ap); - va_end(ap); -} - - -void SoapTraceLeave(const char* function, - const char* format, ...) -{ - va_list ap; - - va_start(ap, format); - _SoapLogWrite(LOG_TRACE, function, format, ap); - va_end(ap); -} - - -void SoapTraceLeaveWithError(const char* function, - const char* format, ...) -{ - va_list ap; - - va_start(ap, format); - _SoapLogWrite(LOG_ERROR, function, format, ap); - va_end(ap); -} - - -void SoapLog(SoapLogLevel level, const char* function, - const char* format, ...) -{ - va_list ap; - - va_start(ap, format); - _SoapLogWrite(level, function, format, ap); - va_end(ap); -} - - |