home *** CD-ROM | disk | FTP | other *** search
- /*
- *
- * Title : Logger internal header file.
- * System : Any
- * Version "2.2"
- * Copyright : (c) John H. Winters
- * Date : 28th September, 1992
- * Author : John H. Winters
- *
- * Function : Declares items common between netlog and logger.
- *
- *
- * Modification history.
- *
- * Version : 2.1
- * Date : 13th November, 1992
- * Author : John H. Winters
- * Changes : Added DROP_DEAD macro.
- *
- * Version : 2.2
- * Date : 10th January, 1993
- * Author : John H. Winters
- * Changes : Adapted to suit new SDF i/f.
- *
- * Version :
- * Date :
- * Author :
- * Changes :
- *
- */
-
- /*
- *============================================================================
- *
- * Hash defines.
- *
- *============================================================================
- */
-
- #define BUFFER_SIZE 256
- #define DROP_DEAD 7
- #define FORMAT_VERSION 1
- #define LOG_IDENT 100
- #define LOG_MAX_TASKNAME 8
- #define MAILSLOT_NAME "\\MAILSLOT\\LOGGER"
- #define OLD_LOG_IDENT 5
- #define QUEUE_NAME "\\QUEUES\\LOGGER"
- #define QUEUE_PRIORITY 8
- #define REMOTE_SLOT "\\\\*\\MAILSLOT\\LOGGER"
-
- /*
- *============================================================================
- *
- * Type definitions.
- *
- *============================================================================
- */
-
- /*
- * These next two are for reverse compatibility only. They allow the
- * new logger to accept messages from old processes.
- */
- typedef struct {
- u16 ident ;
- u16 size ;
- u16 padding ;
- } t_old_msg_header ;
-
- typedef struct {
- t_old_msg_header header ;
- u8 body [BUFFER_SIZE] ;
- } t_old_msg ;
-
- /*
- * Now the new structure. Note that this structure is used to pass log
- * messages in two distinct ways. It is passed from the generating
- * process to a logger process in a relatively raw form, in order to be
- * independent of the standard message building and communication libraries.
- * Once it has reached the logger process, it may be passed on further,
- * but then it will be a layer 7 data item in a proper inter-process
- * message, subject to all the usual session management etc.
- */
- typedef struct {
- u8 ident ;
- u8 format_version ;
- u8 text_length [2] ;
- u8 severity ;
- u8 task_name [LOG_MAX_TASKNAME] ;
- u8 timestamp [LOG_TIMESTAMP_LEN] ;
- /*
- * Followed by the text of the message.
- */
- } t_NL_Header ;
-
-