Ejemplo n.º 1
0
int WEBBY_impl_run( void *impl )
{
  WEBBY_IMPL *wimpl = ( WEBBY_IMPL * ) impl;
  
  MLOG_INFO( "WEBBY the web server is running" );

  return EVLOOP_run( wimpl->loop );
}
Ejemplo n.º 2
0
void LOGG_test()
{
  char buf[512];

  unlink( LOG_FILE );
  unlink( ERR_FILE );
  MLOG_init( MLOG_LEVEL_DEBUG, MLOG_ACTION_TO_FILE, LOG_FILE);
  MLOG_alloc_option( MLOG_ALLOC_TLS_HEAP, 1024 );

  MLOG_TRACE("Not logged");
  MLOG_DEBUG("First post %d", 42 );
  MLOG_INFO("Important message %d %d %d", 42, 42, 42);
  MLOG_ERROR("ERROR ERROR ERROR");


  sprintf( buf, "${BIN_ROOT_DIR}/../scripts/readerrors.pl %s", ERR_FILE );
  printf("%s\n",buf);
  VASSERT( system(buf) == 0 );
}
Ejemplo n.º 3
0
void write_some_log_entrys() {
	for (int i = 0; i < num_loops; i++)
		MLOG_INFO("this is a test.");
}