1.1 --- a/ucx/logging.h Fri Feb 08 10:37:24 2013 +0100 1.2 +++ b/ucx/logging.h Fri Feb 08 11:25:04 2013 +0100 1.3 @@ -22,7 +22,8 @@ 1.4 1.5 typedef struct { 1.6 FILE *stream; 1.7 - size_t(*writer)(const void*, size_t, size_t, FILE*); 1.8 + write_func writer; 1.9 + char *dateformat; 1.10 unsigned int level; 1.11 unsigned int mask; 1.12 UcxMap* levels; 1.13 @@ -31,18 +32,6 @@ 1.14 UcxLogger *ucx_logger_new(FILE *stream, unsigned int level, unsigned int mask); 1.15 void ucx_logger_free(UcxLogger* logger); 1.16 1.17 -/** 1.18 - * Sets the output stream and writer for this logger. 1.19 - * The parameters stream and writer may be NULL, if they shall remain unchanged 1.20 - * in the logger. 1.21 - * l 1.22 - * @param logger The logger 1.23 - * @param stream The stream the logger shall log to 1.24 - * @param writer A pointer to the write function 1.25 - */ 1.26 -void ucx_logger_setoutput(UcxLogger *logger, FILE *stream, 1.27 - size_t(*writer)(const void*,size_t,size_t,FILE*)); 1.28 - 1.29 void ucx_logger_logf(UcxLogger *logger, unsigned int level, const char* file, 1.30 const unsigned int line, const char* format, ...); 1.31 #define ucx_logger_log(logger, level, format...) \