/*
- * Copyright (C) 1995-2005, Index Data ApS
+ * Copyright (C) 1995-2007, Index Data ApS
* See the file LICENSE for details.
*
- * $Id: tstlog.c,v 1.10 2006-03-21 12:54:02 adam Exp $
+ * $Id: tstlog.c,v 1.14 2007-06-05 06:40:28 adam Exp $
*
*/
#include <stdio.h>
int number = 1;
unsigned int wait_between_log = 0;
- while ((ret = options("f:v:l:m:n:s:w:Hh", argv, argc, &arg)) != -2)
+ while ((ret = options("f:p:v:l:m:n:r:w:Hh", argv, argc, &arg)) != -2)
{
switch (ret)
{
- case 's':
+ case 'r':
yaz_log_init_max_size(atoi(arg));
break;
case 'f':
yaz_log_time_format(arg);
break;
+ case 'p':
+ yaz_log_init_prefix(arg);
+ break;
case 'v':
yaz_log_init_level(yaz_log_mask_str(arg));
break;
break;
case 'h':
default:
- fprintf(stderr, "tstlog. Bad option\n");
fprintf(stderr, "tstlog [-f logformat] [-v level] [-l file] "
- "[-m module] [-w sec] [-s max] [-n num] [-H] msg ..\n");
+ "[-p prefix] [-m module] [-w sec] [-r max] [-n num] [-H] msg ..\n");
exit(1);
}
}