亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? slog.h

?? common c++提供socket
?? H
字號:
// Copyright (C) 1999-2005 Open Source Telecom Corporation.//// 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 of the License, or// (at your option) any later version.//// This program is distributed in the hope that it will be useful,// but WITHOUT ANY WARRANTY; without even the implied warranty of// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the// GNU General Public License for more details.//// You should have received a copy of the GNU General Public License// along with this program; if not, write to the Free Software// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.//// As a special exception, you may use this file as part of a free software// library without restriction.  Specifically, if other files instantiate// templates or use macros or inline functions from this file, or you compile// this file and link it with other files to produce an executable, this// file does not by itself cause the resulting executable to be covered by// the GNU General Public License.  This exception does not however    // invalidate any other reasons why the executable file might be covered by// the GNU General Public License.    //// This exception applies only to the code released under the name GNU// Common C++.  If you copy code from other releases into a copy of GNU// Common C++, as the General Public License permits, the exception does// not apply to the code that you add in this way.  To avoid misleading// anyone as to the status of such modified files, you must delete// this exception notice from them.//// If you write modifications of your own for GNU Common C++, it is your choice// whether to permit this exception to apply to your modifications.// If you do not wish that, delete this exception notice.///** * @file slog.h * @short System logging facilities abstraction. **/#ifndef	CCXX_SLOG_H_#define	CCXX_SLOG_H_#ifndef CCXX_MISSING_H_#include <cc++/missing.h>#endif#ifndef	CCXX_THREAD_H_#include <cc++/thread.h>#endif#ifndef	HAVE_SYSLOG_H#include <cstdio>#endif#ifdef	CCXX_NAMESPACESnamespace ost {#endif/** * The slog class is used to stream messages to the system's logging facility (syslogd). * A default <code>slog</code> object is used to avoid confusion with the native syslog * facility and to imply a logical relationship to the C++ <code>clog()</code>. * * The key difference is that the <code>slog</code> object sends it's output to the * system logging daemon (typically syslogd) rather than through stderr. * <code>slog</code> can be streamed with the <code><<</code> operator just * like <code>clog</code>; a default slog object is pre-initialized, and you stream * character data to it. * * The <code>slog</code> allows one to specify logging levels and other properties through the <code>()</code> operators. * Hence, once can do: * * <code><pre> * slog("mydaemon", SLOG_DAEMON, SLOG_EMERGENCY) << I just died << endl; </pre></code> * * or things like:  * * <code><pre> * slog("mydaemon", SLOG_DAEMON);  * slog(SLOG_INFO) << "daemon initalized" << endl; </pre></code> * * The intent is to be as common-place and as convenient to use as the stderr based clog facility * found in C++, and this is especially useful for C++ daemons. * * The <code>std::flush</code> manipulator doesn't work.  Either the * <code>std::endl</code> or <code>std::ends</code> manipulators * must be used to cause the output to be sent to the daemon. *  * When this class is used on a system that doesn't have the syslog headers * (i.e. a non-posix win32 box), the output goes to the a file with the same name * as the syslog identifier string with '.log' appended to it.  If the identifier string ends in * '.exe', the '.exe' is removed before the '.log' is appened. (e.g. the identifier foo.exe will * generate a log file named foo.log) *  * @author David Sugar <dyfet@ostel.com> * <br>Minor docs & hacks by Jon Little <littlej@arlut.utexas.edu> * * @short system logging facility class. */class __EXPORT Slog : protected std::streambuf, public std::ostream{public:	typedef enum Class	{		classSecurity,		classAudit,		classDaemon,		classUser,		classDefault,		classLocal0,		classLocal1,		classLocal2,		classLocal3,		classLocal4,		classLocal5,		classLocal6,		classLocal7	} Class;	typedef enum Level	{		levelEmergency = 1,		levelAlert,		levelCritical,		levelError,		levelWarning,		levelNotice,		levelInfo,		levelDebug	} Level;private:#ifndef	HAVE_SYSLOG_H	Mutex lock;	FILE *syslog;#endif	int priority;	Level  _level;	bool _enable;        bool _clogEnable;	ThreadImpl *getPriv(void);protected:	/**         * This is the streambuf function that actually outputs the data         * to the device.  Since all output should be done with the standard         * ostream operators, this function should never be called directly.	 */	int overflow(int c);public:	/**         * Default (and only) constructor.  The default log level is set to         * SLOG_DEBUG.  There is no default log facility set.  One should be         * set before attempting any output.  This is done by the <code>open()</code> or the         * <code>operator()(const char*, Class, Level)</code>         * functions.	 */	Slog(void);	virtual ~Slog(void);	void close(void);	/**         * (re)opens the output stream.         * @param ident The identifier portion of the message sent to the syslog daemon.         * @param grp The log facility the message is sent to	 */	void open(const char *ident, Class grp = classUser);	/**         * Sets the log identifier, level, and class to use for subsequent output         * @param ident The identifier portion of the message         * @param grp The log facility the message is sent to         * @param level The log level of the message	 */	Slog &operator()(const char *ident, Class grp = classUser,			 Level level = levelError);	/**         * Changes the log level and class to use for subsequent output         * @param level The log level of the message         * @param grp The log facility the message is sent to	 */	Slog &operator()(Level level, Class grp = classDefault);        /**         * Does nothing except return *this.         */	Slog &operator()(void);#ifdef	HAVE_SNPRINTF	/**	 * Print a formatted syslog string.	 *	 * @param format string.	 */	void error(const char *format, ...);        /**         * Print a formatted syslog string.         *         * @param format string.         */        void warn(const char *format, ...);        /**         * Print a formatted syslog string.         *         * @param format string.         */        void debug(const char *format, ...);        /**         * Print a formatted syslog string.         *         * @param format string.         */        void emerg(const char *format, ...);        /**         * Print a formatted syslog string.         *         * @param format string.         */        void alert(const char *format, ...);        /**         * Print a formatted syslog string.         *         * @param format string.         */        void critical(const char *format, ...);        /**         * Print a formatted syslog string.         *         * @param format string.         */        void notice(const char *format, ...);        /**         * Print a formatted syslog string.         *         * @param format string.         */        void info(const char *format, ...);#endif	/**         * Sets the logging level.         * @param enable is the logging level to use for further output	 */	inline void level(Level enable)		{_level = enable;};	/**         * Enables or disables the echoing of the messages to clog in addition         * to the syslog daemon.  This is enabled by the default class constructor.         * @param f true to enable, false to disable clog output	 */        inline void clogEnable(bool f=true)                {_clogEnable = f;};	inline Slog &warn(void)		{return operator()(Slog::levelWarning);};	inline Slog &error(void)		{return operator()(Slog::levelError);};	inline Slog &debug(void)		{return operator()(Slog::levelDebug);};	inline Slog &emerg(void)		{return operator()(Slog::levelEmergency);};	inline Slog &alert(void)		{return operator()(Slog::levelAlert);};	inline Slog &critical(void)		{return operator()(Slog::levelCritical);};	inline Slog &notice(void)		{return operator()(Slog::levelNotice);};	inline Slog &info(void)		{return operator()(Slog::levelInfo);};};//#ifdef	CYGWIN_IMPORTS//extern __declspec(dllimport) Slog slog;//#elseextern __EXPORT Slog	slog;//#endif#ifdef	CCXX_NAMESPACES}#endif#endif/** EMACS ** * Local variables: * mode: c++ * c-basic-offset: 8 * End: */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久久久久免费毛片精品| 亚洲午夜久久久久久久久电影院| 亚洲蜜臀av乱码久久精品蜜桃| 日本免费在线视频不卡一不卡二| 国产·精品毛片| 91精品国产91久久久久久最新毛片| 国产精品视频一区二区三区不卡| 日本不卡123| 欧美少妇一区二区| 国产精品成人一区二区艾草| 久久99精品国产91久久来源| 欧美日韩国产综合一区二区 | 欧美成人r级一区二区三区| 一区二区在线电影| 成人网页在线观看| 精品蜜桃在线看| 日韩精品亚洲一区| 欧美日韩在线亚洲一区蜜芽| 亚洲欧洲精品一区二区三区| 国产黑丝在线一区二区三区| 日韩欧美你懂的| 日韩vs国产vs欧美| 欧美色涩在线第一页| 一区二区三区影院| av在线免费不卡| 国产精品超碰97尤物18| 国产成人在线色| 久久精品视频在线看| 国产一区91精品张津瑜| 欧美大片在线观看| 久久国产乱子精品免费女| 91精品国产美女浴室洗澡无遮挡| 午夜一区二区三区视频| 欧美视频在线一区| 亚洲成a人片在线观看中文| 欧美亚洲动漫精品| 午夜视频在线观看一区| 91麻豆精品国产| 看电影不卡的网站| 久久久久国产成人精品亚洲午夜| 国产毛片精品视频| 国产精品福利一区| 色噜噜夜夜夜综合网| 亚洲一区在线观看视频| 欧美老女人第四色| 精品一区二区在线看| 久久久久久免费网| 99久久99精品久久久久久| 亚洲精品日日夜夜| 欧美一区二区三区白人| 精油按摩中文字幕久久| 国产精品久久久久一区| 日本精品一级二级| 青娱乐精品视频在线| 久久色在线观看| 91亚洲精品久久久蜜桃网站| 亚洲国产日韩a在线播放性色| 91精品国产色综合久久不卡电影| 韩国女主播一区| 亚洲蜜臀av乱码久久精品蜜桃| 在线播放国产精品二区一二区四区| 精品中文字幕一区二区小辣椒| 国产精品免费av| 欧美精品粉嫩高潮一区二区| 国产传媒欧美日韩成人| 亚洲午夜三级在线| 久久久久久久久久久久电影| 色欧美片视频在线观看在线视频| 日本欧美在线看| 中文字幕一区二区三区不卡| 欧美一区二区三区公司| 波多野结衣在线一区| 日韩成人免费电影| 日韩理论片在线| 欧美电影免费观看高清完整版在线 | 亚洲色欲色欲www在线观看| 91精品国产综合久久婷婷香蕉| 成人深夜福利app| 日韩国产一二三区| 国产精品久久久久aaaa| 日韩一级黄色大片| 在线欧美日韩国产| 国产精品一线二线三线| 婷婷六月综合亚洲| 亚洲色图欧洲色图婷婷| 欧美成人午夜电影| 欧美亚一区二区| 99视频精品免费视频| 国内外成人在线视频| 视频一区视频二区在线观看| 亚洲视频图片小说| 国产网站一区二区| 日韩欧美不卡在线观看视频| 欧美日韩和欧美的一区二区| 91在线视频18| 国产a区久久久| 国产一区二区精品久久| 日韩av电影免费观看高清完整版 | 精品国产乱码久久| 欧美人妖巨大在线| 欧美图片一区二区三区| 色综合激情久久| 成人久久久精品乱码一区二区三区 | 成人短视频下载| 国产成人一区在线| 极品美女销魂一区二区三区| 日韩成人一区二区三区在线观看| 一区二区三区在线免费播放| 最新欧美精品一区二区三区| 亚洲国产精品精华液ab| 久久嫩草精品久久久精品| 欧美成人精品1314www| 欧美成人一级视频| 精品国产99国产精品| 欧美xxxx老人做受| 久久夜色精品国产欧美乱极品| 日韩欧美中文字幕精品| 欧美精品一区二区久久婷婷| 精品欧美一区二区在线观看| 久久久国产精华| 国产精品人人做人人爽人人添| 国产精品天干天干在观线| 综合网在线视频| 亚洲国产精品久久久久秋霞影院 | 日韩欧美国产高清| 精品欧美一区二区在线观看 | 99久久精品情趣| 色一区在线观看| 9191久久久久久久久久久| 欧美精品一区二| 中文字幕第一区二区| 亚洲欧美乱综合| 日韩影视精彩在线| 极品瑜伽女神91| 成人免费视频网站在线观看| 久久99久久久欧美国产| 国产一区二区精品在线观看| 国产精品白丝jk黑袜喷水| 91网站在线播放| 欧美亚洲动漫精品| 欧美一区二区视频在线观看2022 | 亚洲午夜久久久久中文字幕久| 午夜视频在线观看一区二区三区| 亚洲一区二区欧美激情| 亚洲成人动漫在线观看| 日韩中文欧美在线| 国产精品自拍在线| 99视频精品在线| 欧美三级在线视频| 欧美一区二区不卡视频| 久久久久久久久久久久电影| 最新国产の精品合集bt伙计| 亚洲美女偷拍久久| 日韩专区一卡二卡| 日本成人中文字幕在线视频| 成人免费观看男女羞羞视频| 在线视频一区二区免费| 欧美日本一区二区在线观看| 精品美女一区二区| 精品福利在线导航| 国产精品丝袜一区| 日韩高清在线电影| 久久99国产精品尤物| 99久久免费国产| 欧美日韩亚洲另类| 亚洲同性同志一二三专区| 亚洲国产一区二区视频| 国产一区二区毛片| 在线观看日韩国产| 日韩一区二区三区视频在线观看| 日本一区二区三区电影| 亚洲丰满少妇videoshd| 国产主播一区二区| 欧美日韩成人综合| 18成人在线观看| 久久成人av少妇免费| 色综合久久88色综合天天| 国产精品视频线看| 另类中文字幕网| 欧美影视一区二区三区| 精品国产sm最大网站免费看| 日本不卡一区二区| 91原创在线视频| 亚洲精品一区二区三区在线观看| 国产精品久久久久aaaa| 成人小视频在线| 欧美成人aa大片| 午夜激情久久久| 国产精品亚洲一区二区三区妖精| 精品久久久三级丝袜| 亚洲国产你懂的| 91视频在线观看| 亚洲午夜激情网页| 国产精品综合二区| 日韩欧美一区在线| 亚洲国产aⅴ天堂久久| 欧美无砖专区一中文字| 亚洲四区在线观看| 成人激情小说网站| 精品视频一区 二区 三区|