#include <stdio.h>

/*
   This is a callback function, which is called for handling all
   the run time logging/printing. The callback function can be 
   registered at the context level, which means it is used for
   logging/printing debug messages related to a particular context.
   It can also be registered at a global level, which applies
   to all contexts.

   This file can be modified to suit any application's need.
*/
void writeToFile(void* pPrntStrmInfo, const char* fmtspec, 
                 va_list arglist)
{
   FILE * fp = (FILE*) pPrntStrmInfo;
   vfprintf(fp, fmtspec, arglist);
   return;
}
