diff -r 86a23238d8a1 -r 6068d965328b ucx/logging.h --- a/ucx/logging.h Fri Feb 08 10:37:24 2013 +0100 +++ b/ucx/logging.h Fri Feb 08 11:25:04 2013 +0100 @@ -22,7 +22,8 @@ typedef struct { FILE *stream; - size_t(*writer)(const void*, size_t, size_t, FILE*); + write_func writer; + char *dateformat; unsigned int level; unsigned int mask; UcxMap* levels; @@ -31,18 +32,6 @@ UcxLogger *ucx_logger_new(FILE *stream, unsigned int level, unsigned int mask); void ucx_logger_free(UcxLogger* logger); -/** - * Sets the output stream and writer for this logger. - * The parameters stream and writer may be NULL, if they shall remain unchanged - * in the logger. - * l - * @param logger The logger - * @param stream The stream the logger shall log to - * @param writer A pointer to the write function - */ -void ucx_logger_setoutput(UcxLogger *logger, FILE *stream, - size_t(*writer)(const void*,size_t,size_t,FILE*)); - void ucx_logger_logf(UcxLogger *logger, unsigned int level, const char* file, const unsigned int line, const char* format, ...); #define ucx_logger_log(logger, level, format...) \