* Copyright (c) 1995-2002, Index Data
* See the file LICENSE for details.
*
* Copyright (c) 1995-2002, Index Data
* See the file LICENSE for details.
*
static int l_level = LOG_DEFAULT_LEVEL;
static FILE *l_file = NULL;
static char l_prefix[512] = "";
static int l_level = LOG_DEFAULT_LEVEL;
static FILE *l_file = NULL;
static char l_prefix[512] = "";
void yaz_log_init(int level, const char *prefix, const char *fname)
{
yaz_log_init_level (level);
void yaz_log_init(int level, const char *prefix, const char *fname)
{
yaz_log_init_level (level);
if (start_hook_func)
(*start_hook_func)(o_level, buf, start_hook_info);
ti = time(0);
tim = localtime(&ti);
strftime(tbuf, 50, "%H:%M:%S-%d/%m", tim);
if (start_hook_func)
(*start_hook_func)(o_level, buf, start_hook_info);
ti = time(0);
tim = localtime(&ti);
strftime(tbuf, 50, "%H:%M:%S-%d/%m", tim);
- fprintf(l_file, "%s: %s%s %s\n", tbuf, l_prefix, flags, buf);
+ fprintf(l_file, "%s: %s%s %s%s\n", tbuf, l_prefix, flags,
+ l_prefix2, buf);