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.23 2004-11-26 10:58:38 heikki Exp $
31 * \brief The old, deprecated header for log.c
38 #warning "use of log.h is deprecated, use ylog.h instead"
41 #include <yaz/yconfig.h>
42 #include <yaz/xmalloc.h>
46 /* The old LOG_ bit names are here for compatibility only. They may
47 * conflict with bits defined in syslog.h, or other places. 'LOG'
48 * really is not such a good name. YLOG must be more unique
50 #define LOG_FATAL YLOG_FATAL
51 #define LOG_DEBUG YLOG_DEBUG
52 #define LOG_WARN YLOG_WARN
53 #define LOG_LOG YLOG_LOG /* Deprecated, use the modern dynamic log levels*/
54 #define LOG_ERRNO YLOG_ERRNO
55 #define LOG_FILE 0x00000020 /* Deprecated - not in ylog.h at all*/
56 #define LOG_APP 0x00000040 /* Deprecated - not in ylog.h at all*/
57 #define LOG_MALLOC YLOG_MALLOC /* deprecated */
58 #define LOG_NOTIME YLOG_NOTIME /* do not output date and time */
59 #define LOG_APP2 0x00000200 /* Deprecated - not in ylog.h at all*/
60 #define LOG_APP3 0x00000400 /* Deprecated - not in ylog.h at all*/
61 #define LOG_FLUSH YLOG_FLUSH
62 /* LOG_LOGLVL is a new one in ylog.h. So new that no log.h users should
65 #define LOG_ALL YLOG_ALL
67 #define LOG_DEFAULT_LEVEL YLOG_DEFAULT_LEVEL
70 /* logf is deprecated, as it conflicts with a math function */