⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 errlog.h

📁 unix 下用pro*c tuxedo 开发的东西
💻 H
字号:
/*
 * BANKING TRANSACTION SWITCHING SYSTEM (version 1.0).
 *
 * (C) COPYRIGHT International Business Machines Corp. 1997
 * All Rights Reserved
 * Licensed Materials - Property of IBM
 */

/*
 ***************************************************************************
 * (1)  File Name      : errlog.h                                          *
 * (2)  Author         : Li Feng (IBM China)                               *
 * (3)  Date Created   : 1997/06/01                                        *
 * (4)  Version        : 1.0                                               *
 * (5)  Environment    : AIX 4.x                                           *
 * (6)  Warnings       :                                                   *
 ***************************************************************************
 * (7)  Changed Logs   :                                                   *
 *      Change No.   Date          Author          Reason For Change       *
 *                                                                         *
 ***************************************************************************
 */


#ifndef __ERRLOG_H
#define __ERRLOG_H

/**************************************************
  The following 2 sector must match trccfg.dat file
  if the file changed, the following must
  change.
  Be careful, the first number must begin with 0
  and increase by 1
***************************************************/

/* Define Trace Type for InitError() */
#define MAX_SECTOR_NUM        3
#define TRACE_SCREEN    0       /* print to screen    */
#define TRACE_FILE      1	/* print to file      */
#define TRACE_REMOTE    2       /* print to remote pc */

/* Define Log Type for ProcessError() */
#define MAX_MESSAGE_TYPE_NUM  4
#define LOG_NORMAL      0       /* Normal Message    */
#define LOG_DEBUG       1       /* Debug Message     */
#define LOG_WARNING     2       /* Warning Message   */
#define LOG_ERROR       3       /* Error Message     */


/* Define System Reserve Net ID */
#define RZV_NID_BTSCTL	1	
#define RZV_NID_CLTMPT	2
#define RZV_NID_CLTTTP	3
#define RZV_NID_SVRMPT	4
#define RZV_NID_SVRSTP	5
#define RZV_NID_TDSVR	6
#define RZV_NID_TDCLT	7
#define RZV_NID_CONSOLE 8

int InitErrLogObj(char* pcIdStr, int iNetId);

int InitErrLogObjPersonal(char *PersonalPath, char* pcIdStr, int iNetId);

int InitErrLogObjPersonalWithName(char *PersonalPath, char *ErrorLogFileName, char* pcIdStr, int iNetId);

int ProcessError(int iLogTyp, char* pcFmt, ...);

int CloseErrLogObj(void);

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -