/* This program is free software; you can redistribute it and/or modify it
under the terms of the license (GNU LGPL) which comes with this package. */
-#include "gras_private.h"
+#include "xbt/sysdep.h"
+#include "xbt/log.h"
+#include "xbt/error.h"
#include <stdio.h>
GRAS_LOG_NEW_DEFAULT_SUBCATEGORY(log_app,log,"default logging handler");
extern const char *gras_log_priority_names[7];
-static void append_file(gras_log_appender_t* this, gras_log_event_t* ev,
+static void append_file(gras_log_appender_t this, gras_log_event_t ev,
const char *fmt);
/*
};
*/
-static gras_log_appender_t gras_log_appender_file = { append_file, NULL } ;
+static s_gras_log_appender_t gras_log_appender_file = { append_file, NULL } ;
/* appender_data=FILE* */
-gras_log_appender_t* gras_log_default_appender = &gras_log_appender_file;
+gras_log_appender_t gras_log_default_appender = &gras_log_appender_file;
-static void append_file(gras_log_appender_t* this,
- gras_log_event_t* ev,
+static void append_file(gras_log_appender_t this,
+ gras_log_event_t ev,
const char *fmt) {
- // TODO: define a format field in struct for timestamp, etc.
- // struct DefaultLogAppender* this = (struct DefaultLogAppender*)this0;
+ /* TODO: define a format field in struct for timestamp, etc.
+ struct DefaultLogAppender* this = (struct DefaultLogAppender*)this0;*/
if ((FILE*)(this->appender_data) == NULL)
this->appender_data = (void*)stderr;