http://mbed.org/users/okini3939/notebook/logger/

Dependencies:   mbed

Committer:
okini3939
Date:
Sat Apr 16 15:15:48 2011 +0000
Revision:
0:a3c892f39cc1

        

Who changed what in which revision?

UserRevisionLine numberNew contents of line
okini3939 0:a3c892f39cc1 1 /*****************************************************************************
okini3939 0:a3c892f39cc1 2 * pppdebug.h - System debugging utilities.
okini3939 0:a3c892f39cc1 3 *
okini3939 0:a3c892f39cc1 4 * Copyright (c) 2003 by Marc Boucher, Services Informatiques (MBSI) inc.
okini3939 0:a3c892f39cc1 5 * portions Copyright (c) 1998 Global Election Systems Inc.
okini3939 0:a3c892f39cc1 6 * portions Copyright (c) 2001 by Cognizant Pty Ltd.
okini3939 0:a3c892f39cc1 7 *
okini3939 0:a3c892f39cc1 8 * The authors hereby grant permission to use, copy, modify, distribute,
okini3939 0:a3c892f39cc1 9 * and license this software and its documentation for any purpose, provided
okini3939 0:a3c892f39cc1 10 * that existing copyright notices are retained in all copies and that this
okini3939 0:a3c892f39cc1 11 * notice and the following disclaimer are included verbatim in any
okini3939 0:a3c892f39cc1 12 * distributions. No written agreement, license, or royalty fee is required
okini3939 0:a3c892f39cc1 13 * for any of the authorized uses.
okini3939 0:a3c892f39cc1 14 *
okini3939 0:a3c892f39cc1 15 * THIS SOFTWARE IS PROVIDED BY THE CONTRIBUTORS *AS IS* AND ANY EXPRESS OR
okini3939 0:a3c892f39cc1 16 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
okini3939 0:a3c892f39cc1 17 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
okini3939 0:a3c892f39cc1 18 * IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
okini3939 0:a3c892f39cc1 19 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
okini3939 0:a3c892f39cc1 20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
okini3939 0:a3c892f39cc1 21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
okini3939 0:a3c892f39cc1 22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
okini3939 0:a3c892f39cc1 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
okini3939 0:a3c892f39cc1 24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
okini3939 0:a3c892f39cc1 25 *
okini3939 0:a3c892f39cc1 26 ******************************************************************************
okini3939 0:a3c892f39cc1 27 * REVISION HISTORY (please don't use tabs!)
okini3939 0:a3c892f39cc1 28 *
okini3939 0:a3c892f39cc1 29 * 03-01-01 Marc Boucher <marc@mbsi.ca>
okini3939 0:a3c892f39cc1 30 * Ported to lwIP.
okini3939 0:a3c892f39cc1 31 * 98-07-29 Guy Lancaster <lancasterg@acm.org>, Global Election Systems Inc.
okini3939 0:a3c892f39cc1 32 * Original.
okini3939 0:a3c892f39cc1 33 *
okini3939 0:a3c892f39cc1 34 *****************************************************************************
okini3939 0:a3c892f39cc1 35 */
okini3939 0:a3c892f39cc1 36 #ifndef PPPDEBUG_H
okini3939 0:a3c892f39cc1 37 #define PPPDEBUG_H
okini3939 0:a3c892f39cc1 38
okini3939 0:a3c892f39cc1 39 /* Trace levels. */
okini3939 0:a3c892f39cc1 40 #define LOG_CRITICAL (PPP_DEBUG | LWIP_DBG_LEVEL_SEVERE)
okini3939 0:a3c892f39cc1 41 #define LOG_ERR (PPP_DEBUG | LWIP_DBG_LEVEL_SEVERE)
okini3939 0:a3c892f39cc1 42 #define LOG_NOTICE (PPP_DEBUG | LWIP_DBG_LEVEL_WARNING)
okini3939 0:a3c892f39cc1 43 #define LOG_WARNING (PPP_DEBUG | LWIP_DBG_LEVEL_WARNING)
okini3939 0:a3c892f39cc1 44 #define LOG_INFO (PPP_DEBUG)
okini3939 0:a3c892f39cc1 45 #define LOG_DETAIL (PPP_DEBUG)
okini3939 0:a3c892f39cc1 46 #define LOG_DEBUG (PPP_DEBUG)
okini3939 0:a3c892f39cc1 47
okini3939 0:a3c892f39cc1 48
okini3939 0:a3c892f39cc1 49 #define TRACELCP PPP_DEBUG
okini3939 0:a3c892f39cc1 50
okini3939 0:a3c892f39cc1 51 #if PPP_DEBUG
okini3939 0:a3c892f39cc1 52
okini3939 0:a3c892f39cc1 53 #define AUTHDEBUG(a, b) LWIP_DEBUGF(a, b)
okini3939 0:a3c892f39cc1 54 #define IPCPDEBUG(a, b) LWIP_DEBUGF(a, b)
okini3939 0:a3c892f39cc1 55 #define UPAPDEBUG(a, b) LWIP_DEBUGF(a, b)
okini3939 0:a3c892f39cc1 56 #define LCPDEBUG(a, b) LWIP_DEBUGF(a, b)
okini3939 0:a3c892f39cc1 57 #define FSMDEBUG(a, b) LWIP_DEBUGF(a, b)
okini3939 0:a3c892f39cc1 58 #define CHAPDEBUG(a, b) LWIP_DEBUGF(a, b)
okini3939 0:a3c892f39cc1 59 #define PPPDEBUG(a, b) LWIP_DEBUGF(a, b)
okini3939 0:a3c892f39cc1 60
okini3939 0:a3c892f39cc1 61 #else /* PPP_DEBUG */
okini3939 0:a3c892f39cc1 62
okini3939 0:a3c892f39cc1 63 #define AUTHDEBUG(a, b)
okini3939 0:a3c892f39cc1 64 #define IPCPDEBUG(a, b)
okini3939 0:a3c892f39cc1 65 #define UPAPDEBUG(a, b)
okini3939 0:a3c892f39cc1 66 #define LCPDEBUG(a, b)
okini3939 0:a3c892f39cc1 67 #define FSMDEBUG(a, b)
okini3939 0:a3c892f39cc1 68 #define CHAPDEBUG(a, b)
okini3939 0:a3c892f39cc1 69 #define PPPDEBUG(a, b)
okini3939 0:a3c892f39cc1 70
okini3939 0:a3c892f39cc1 71 #endif /* PPP_DEBUG */
okini3939 0:a3c892f39cc1 72
okini3939 0:a3c892f39cc1 73 #endif /* PPPDEBUG_H */