📄 syslog.h
字号:
/* * os_win32/syslog.h * * Home page of code is: http://smartmontools.sourceforge.net * * Copyright (C) 2004-8 Christian Franke <smartmontools-support@lists.sourceforge.net> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2, or (at your option) * any later version. * * You should have received a copy of the GNU General Public License * (for example COPYING); if not, write to the Free * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * */#ifndef SYSLOG_H#define SYSLOG_H#define SYSLOG_H_CVSID "$Id: syslog.h,v 1.6 2008/03/04 22:09:48 ballen4705 Exp $\n"#include <stdarg.h>#ifdef __cplusplusextern "C" {#endif/* EVENTLOG_ERROR_TYPE: */#define LOG_EMERG 0#define LOG_ALERT 1#define LOG_CRIT 2#define LOG_ERR 3/* EVENTLOG_WARNING_TYPE: */#define LOG_WARNING 4/* EVENTLOG_INFORMATION_TYPE: */#define LOG_NOTICE 5#define LOG_INFO 6#define LOG_DEBUG 7/* event log: */#define LOG_DAEMON ( 3<<3)/* ident.log: */#define LOG_LOCAL0 (16<<3)/* ident1-7.log: */#define LOG_LOCAL1 (17<<3)#define LOG_LOCAL2 (18<<3)#define LOG_LOCAL3 (19<<3)#define LOG_LOCAL4 (20<<3)#define LOG_LOCAL5 (21<<3)#define LOG_LOCAL6 (22<<3)#define LOG_LOCAL7 (23<<3)#define LOG_FACMASK 0x03f8#define LOG_FAC(f) (((f) & LOG_FACMASK) >> 3) #define LOG_PID 0x01void openlog(const char * ident, int option, int facility);void closelog(void);void vsyslog(int priority, const char * message, va_list args);#ifdef __cplusplus}#endif#endif /* SYSLOG_H */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -