2 * Copyright (c) 1995-2004, Index Data.
4 * Permission to use, copy, modify, distribute, and sell this software and
5 * its documentation, in whole or in part, for any purpose, is hereby granted,
8 * 1. This copyright and permission notice appear in all copies of the
9 * software and its documentation. Notices of copyright or attribution
10 * which appear at the beginning of any file must remain unchanged.
12 * 2. The name of Index Data or the individual authors may not be used to
13 * endorse or promote products derived from this software without specific
14 * prior written permission.
16 * THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT WARRANTY OF ANY KIND,
17 * EXPRESS, IMPLIED, OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
18 * WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
19 * IN NO EVENT SHALL INDEX DATA BE LIABLE FOR ANY SPECIAL, INCIDENTAL,
20 * INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, OR ANY DAMAGES
21 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER OR
22 * NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF
23 * LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
26 * $Id: log.h,v 1.24 2004-11-26 11:06:29 heikki Exp $
31 * \brief The old, deprecated header for log.c
39 #ifndef YAZ_USE_OLD_LOG
40 #warning "use of log.h is deprecated, use ylog.h instead"
41 /* if this warning gets on your nerves, run configure like this:
42 * CFLAGS="-Wall -g -D YAZ_USE_OLD_LOG" ./configure
47 #include <yaz/yconfig.h>
48 #include <yaz/xmalloc.h>
52 /* The old LOG_ bit names are here for compatibility only. They may
53 * conflict with bits defined in syslog.h, or other places. 'LOG'
54 * really is not such a good name. YLOG must be more unique
56 #define LOG_FATAL YLOG_FATAL
57 #define LOG_DEBUG YLOG_DEBUG
58 #define LOG_WARN YLOG_WARN
59 #define LOG_LOG YLOG_LOG /* Deprecated, use the modern dynamic log levels*/
60 #define LOG_ERRNO YLOG_ERRNO
61 #define LOG_FILE 0x00000020 /* Deprecated - not in ylog.h at all*/
62 #define LOG_APP 0x00000040 /* Deprecated - not in ylog.h at all*/
63 #define LOG_MALLOC YLOG_MALLOC /* deprecated */
64 #define LOG_NOTIME YLOG_NOTIME /* do not output date and time */
65 #define LOG_APP2 0x00000200 /* Deprecated - not in ylog.h at all*/
66 #define LOG_APP3 0x00000400 /* Deprecated - not in ylog.h at all*/
67 #define LOG_FLUSH YLOG_FLUSH
68 /* LOG_LOGLVL is a new one in ylog.h. So new that no log.h users should
71 #define LOG_ALL YLOG_ALL
73 #define LOG_DEFAULT_LEVEL YLOG_DEFAULT_LEVEL
76 /* logf is deprecated, as it conflicts with a math function */