2 * Copyright (C) 1995-2005, Index Data ApS
3 * See the file LICENSE for details.
5 * $Id: tstlog.c,v 1.4 2005-01-15 19:47:15 adam Exp $
10 #include <yaz/options.h>
13 int main(int argc, char **argv)
19 while ((ret = options("f:v:l:m:", argv, argc, &arg)) != -2)
24 yaz_log_time_format(arg);
27 yaz_log_init_level(yaz_log_mask_str(arg));
30 yaz_log_init_file(arg);
33 level = yaz_log_module_level(arg);
36 yaz_log(level, "%s", arg);
39 fprintf(stderr, "tstlog. Bad option\n");
40 fprintf(stderr, "tstlog [-f logformat] [-v level] [-l file] "
41 "[-m module] msg ..\n");