
#include <stdio.h>
#include <stdarg.h>
#include <string.h>
#include <stdlib.h>
#include "afpfs-ng/libafpclient.h"

void log_for_client(void * priv,
	enum loglevels loglevel, int logtype, char *format, ...) {

	va_list ap;
	char new_message[1024];

	va_start(ap, format);
	vsnprintf(new_message,1024,format,ap);
	va_end(ap);

	libafpclient->log_for_client(priv,loglevel,logtype,new_message);
}
 
void stdout_log_for_client(void * priv,
        enum loglevels loglevel, int logtype, const char *message)
{
	printf("%s\n",message);
}

