/* ***************************************************************************** * * Copyright © 1996 Digital Equipment Corporation. * All rights reserved. * * Redistribution and use in source and binary forms are permitted * provided that the above copyright notice and this paragraph are * duplicated in all such forms and that any documentation, * advertising materials, and other materials related to such * distribution and use acknowledge that the software was developed * by Digital Equipment Corporation. The name of the * Corporation may not be used to endorse or promote products derived * from this software without specific prior written permission. * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * ***************************************************************************** FACILITY: PPP ABSTRACT: Definitions for the debug log records. AUTHOR: Patrick Crilly 07-Decemer-1995 REVISION HISTORY: X-2 BWK002 Barry W. Kierstein 17-DEC-1996 Replaced the standard Digital copyright with one compatible with the CMU copyright. X-1 BWK001 Barry W. Kierstein 24-JUL-1996 Corrected copyright notice. */ /* LogRecord Message Types - borrowed from syslog.h */ #define LOG_EMERG 0 /* system is unusable */ #define LOG_ALERT 1 /* action must be taken immediately */ #define LOG_CRIT 2 /* critical conditions */ #define LOG_ERR 3 /* error conditions */ #define LOG_WARNING 4 /* warning conditions */ #define LOG_NOTICE 5 /* normal but signification condition */ #define LOG_INFO 6 /* informational */ #define LOG_DEBUG 7 /* debug-level messages */ #define LOG_EOF 8 /* End of file */ #define LOG_MSGMAX 128 /* maximum length of a log message */ #ifndef u_char typedef unsigned char u_char; #endif typedef struct _logRecord { __int64 timeStamp; /* Time message was logged */ int msgType; /* Type of log message */ int msgLen; /* Length of log message */ u_char msg[LOG_MSGMAX]; /* Actual log message */ } logRecord;