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

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

?? logging.mdoc

?? bind 9.3結合mysql數據庫
?? MDOC
?? 第 1 頁 / 共 2 頁
字號:
.\" $Id: logging.mdoc,v 1.1.2.1.10.1 2004/03/09 08:33:43 marka Exp $.\".\" Copyright (c) 2004 by Internet Systems Consortium, Inc. ("ISC").\" Copyright (c) 1995-1999 by Internet Software Consortium.\".\" Permission to use, copy, modify, and distribute this software for any.\" purpose with or without fee is hereby granted, provided that the above.\" copyright notice and this permission notice appear in all copies..\".\" THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF.\" MERCHANTABILITY AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT.\" OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE..\".\" The following six UNCOMMENTED lines are required..Dd January 1, 1996.\"Os OPERATING_SYSTEM [version/release].Os BSD 4.\"Dt DOCUMENT_TITLE [section number] [volume].Dt LOGGING @SYSCALL_EXT@.Sh NAME.Nm log_open_stream ,.Nm log_close_stream ,.Nm log_get_stream ,.Nm log_get_filename ,.Nm log_vwrite ,.Nm log_write ,.Nm log_new_context ,.Nm log_free_context ,.Nm log_add_channel ,.Nm log_remove_channel ,.Nm log_option ,.Nm log_category_is_active ,.Nm log_new_syslog_channel ,.Nm log_new_file_channel ,.Nm log_set_file_owner ,.Nm log_new_null_channel ,.Nm log_inc_references ,.Nm log_dec_references ,.Nm log_free_channel.Nd logging system.Sh SYNOPSIS.Fd #include <isc/logging.h>.Ft FILE *.Fn log_open_stream "log_channel chan".Ft int.Fn log_close_stream "log_channel chan".Ft FILE * .Fn log_get_stream "log_channel chan".Ft char * .Fn log_get_filename "log_channel chan".Ft void .Fn log_vwrite "log_context lc" "int category" "int level" \    "const char *format" va_list args".Ft void .Fn log_write "log_context lc" "int category" "int level" \    "const char *format" "...".Ft int.Fn log_check_channel "log_context lc" "int level" "log_channel chan".Ft int.Fn log_check "log_context lc" "int category" "int level".Ft int .Fn log_new_context "int num_categories" "char **category_names" \    "log_context *lc".Ft void .Fn log_free_context "log_context lc".Ft int .Fn log_add_channel "log_context lc" "int category" "log_channel chan".Ft int .Fn log_remove_channel "log_context lc" "int category" "log_channel chan".Ft int .Fn log_option "log_context lc" "int option" "int value".Ft int .Fn log_category_is_active "log_context lc" "int category".Ft log_channel .Fn log_new_syslog_channel "unsigned int flags" "int level" "int facility".Ft log_channel .Fn log_new_file_channel "unsigned int flags" "int level" \    "char *name" "FILE *stream" "unsigned int versions" \    "unsigned long max_size".Ft int.Fn log_set_file_owner "log_channel chan" "uid_t owner" "gid_t group".Ft log_channel .Fn log_new_null_channel "void".Ft int .Fn log_inc_references "log_channel chan".Ft int .Fn log_dec_references "log_channel chan".Ft int .Fn log_free_channel "log_channel chan".Sh DESCRIPTIONThe.Sy ISC.Nm logging libraryis flexible logging system which is based upon a set of concepts:.Nm logging channels ,.Nm categories ,and .Nm logging contexts ..PpThe basic building block is the.Dq Nm logging channel , which includes a .Nm priority (logging level), which type of logging is to occur, and otherflags and information associated with technical aspects of the logging.  The set of priorities which are supported is shown below, in the section.Sx Message Priorities .A priority sets a threshold for message logging; a logging channel will.Em onlylog those messages which are .Em at least as importantas its priority indicates.  (The fact that .Dq more importantmeans .Dq more negative ,under the current scheme, is an implementation detail; if a channel hasa priority of.Dv log_error ,then it will.Em notlog messages with the.Dv log_warningpriority, but it.Em willlog messages with the.Dv log_erroror .Dv log_criticalpriority.).PpThe.Nm logging channelalso has an indication of the type of logging performed.  Currently, the supported.Nm logging types include (see also .Sx Logging Types ,below):.Bl -tag -width "log_syslog" -compact -offset indent.It Dv log_syslogfor .Xr syslog 3 Ns -stylelogging.It Dv log_filefor use of a file.It Dv log_nullfor .Em nologging.ElA new logging channel is created by calling either.Fn log_new_syslog_channel ,.Fn log_new_file_channel ,or.Fn log_new_null_channel ,respectively.  When a channel is no longer to be used, it can be freed using.Fn log_free_channel ..PpBoth .Dv log_syslogand.Dv log_filechannel types can include more information; for instance, a.Dv log_syslog Ns -type channel allows the specification of a .Xr syslog 3 Ns -style.Dq facility , and a.Dv log_file Ns -typechannels allows the caller to set a maximum file size and numberof versions.  (See .Fn log_new_syslog_channelor.Fn log_new_file_channel ,below.)Additionally, once a logging channel of type.Dv log_fileis defined, the functions.Fn log_open_streamand .Fn log_close_streamcan open or close the stream associated with the logging channel's loggingfilename.  The.Fn log_get_streamand.Fn log_get_filenamefunctions return the stream or filename, respectively, of such a logging channel.  Also unique to logging channels of type.Dv log_fileis the.Fn log_set_file_ownerfunction, which tells the logging system what user and group ought to ownnewly created files (which is only effective if the caller is privileged.).PpCallers provide.Dq Nm categories ,determining both the number of such categories and any (optional) names.Categories are like array indexes in C; if the caller declares .Dq Va ncategories, then they are considered to run from 0 to.Va n-1 ;with this scheme, a category number would be invalid if it were negative or greater than/equal to .Va n .Each category can have its own list of .Nm logging channels associated with it; we say that such a channel is .Dq in the particular category..Sy NOTE :Individual logging channels can appear in more than one category..PpA.Dq Nm logging contextis the set of all .Nm logging channels associated with the context's.Nm categories ;thus, a particular .Nm category scheme is associated with a particular.Nm logging context ..Sy NOTE :A logging channel may appear in more than one logging context, and in multiple categories within each logging context..PpUse .Fn log_add_channeland.Fn log_remove_channelto add or remove a logging channel to some category in a logging context.To see if a given category in a logging context is being used, use theBoolean test.Fn log_category_is_active ..PpA .Nm logging contextcan also have a .Nm priority(logging level)and various flags associated with the whole context; in order to alter theflags or change the priority of a context, use.Fn log_option ..Ss Message PrioritiesCurrently, five .Nm priorities(logging levels) are supported (they can also be found in the header file):.Bd -literal -offset indent#define log_critical            (-5)#define log_error               (-4)#define log_warning             (-3)#define log_notice              (-2)#define log_info                (-1).Ed.PpIn the current implementation, logging messages which have a level greaterthan 0 are considered to be debugging messages..Ss Logging TypesThe three different.Nm logging types currently supported are different values of the enumerated type.Ft log_output_type (these are also listed in the header file): .Bd -literal -offset indenttypedef enum { log_syslog, log_file, log_null } log_output_type;.Ed.Ss Logging Channel Flags There are several flags which can be set on a logging channel; the flags and their meanings are as follows (they are also found in the header file):.Bl -tag -width "LOG_USE_CONTEXT_LEVEL  " -offset indent.It Dv LOG_CHANNEL_BROKENThis is set only when some portion of .Fn log_open_streamfails:.Xr open 2 or.Xr fdopen 3  fail;.Xr stat 2fails in a.Dq badway; versioning or truncation is requested on a non-normal file..It Dv LOG_CHANNEL_OFFThis is set for channels opened by .Fn log_new_null_channel ..It Dv LOG_CLOSE_STREAMIf this flag is set, then .Fn log_free_channelwill free a .No non- Dv NULLstream of a logging channel which is being.Xr free 3 Ns -d (if the logging channel is of type.Dv log_file ,of course)..It Dv LOG_PRINT_CATEGORYIf set, .Fn log_vwritewill insert the category name, if available, into logging messages which are logged to channels of type.Dv log_syslogor .Dv log_file ..It Dv LOG_PRINT_LEVELIf set, .Fn log_vwritewill insert a string identifying the message priority level into the information logged to channels of type.Dv log_syslogor .Dv log_file ..It Dv LOG_REQUIRE_DEBUGOnly log debugging messages (i.e., those with a priority greater than zero)..It Dv LOG_TIMESTAMPIf set, .Fn log_vwritewill insert a timestamp into logging messages which are logged to channels oftype.Dv log_syslogor .Dv log_file ..It Dv LOG_TRUNCATETruncate logging file when re-opened.Fn ( log_open_stream will.Xr unlink 2the file and then .Xr open 2a new file of the same name with the.Dv O_EXCLbit set)..It Dv LOG_USE_CONTEXT_LEVELUse the logging context's priority or logging level, rather than the logging channel's own priority.  This can be useful for those channels which are included in multiple logging contexts..El.Ss FUNCTION DESCRIPTIONSThe function.Fn log_open_stream is for use with channels which log to a file; i.e., logging channels with a.Va type field set to.Dq Dv log_file .If the logging channel pointed to by .Dq Fa chanis valid, it attempts to open (and return) the stream associated with thatchannel.  If the stream is already opened, then it is returned; otherwise,.Xr stat 2is used to test the filename for the stream..PpAt this point, if the logging file is supposed to have different.Va versions (i.e., incremented version numbers; higher numbers indicate older versionsof the logging file).  If so, then any existing versions are.Xr rename 2 Ns -dto have one version-number higher than previously, and the.Dq currentfilename for the stream is set to the.Dq \&.0form of the name.  Next, if the logging file is supposed to be truncated(i.e., the.Dv LOG_TRUNCATEbit of the.Va flagsfield of the logging channel structure is set), then any file with the.Dq currentfilename for the stream is.Xr unlink 2 Ns -d ..Sy NOTE :If the logging file is .Em not a regular file, and either of the above operations (version numberingor truncation) is supposed to take place, a.Dv NULLfile pointer is returned..PpFinally, the filename associated with the logging channel is.Xr open 2 Ns -dusing the appropriate flags and a mode which sets the read/write permissionsfor the user, group, and others.  The file descriptor returned by .Xr open 2is then passed to.Xr fopen 3 ,with the append mode set, and the stream returned by this call is storedin the .Fa chanstructure and returned..PpIf .Fn log_open_streamfails at any point, then the .Dv LOG_CHANNEL_BROKEN bit of the.Va flags field of the logging channel pointed to by.Fa chanis set, a .Dv NULLis returned, and .Va errnocontains pertinent information..PpThe.Fn log_close_streamfunction closes the stream associated with the logging channel pointed to by.Dq Fa chan (if.Fa chan is valid and the stream exists and can be closed properly by.Xr fclose 3 ) .  The stream is set to .Dv NULLeven if the call to .Xr fclose 3fails..PpThe function.Fn log_get_streamreturns the stream associated with the logging channel pointed to by.Dq Fa chan ,if it is .No non- Ns Dv NULLand specifies a logging channel which has a .Dv FILE *or stream associated with it..PpThe.Fn log_get_filenamefunction returns the name of the file associated with the logging channel pointed to by.Dq Fa chan ,if it is .No non- Ns Dv NULLand specifies a logging channel which has a file associated with it..PpThe.Fn log_vwrite function performs the actual logging of a message to the various loggingchannels of a logging context.Fa lc .The message consists of an.Xr fprint 3 Ns -style.Fa format and its associated.Fa args (if any); it will be written to all logging channels in the given.Fa categorywhich have a priority set to.Fa levelor any .Em less importantpriority value.  If the.Fa categoryis not valid or has no logging channels, then the category defaults to 0..PpThere are a number of conditions under which a call to .Fn log_vwritewill not result in actually logging the message: if there is no logging channel at even the default category (0), or if a given channel is either .Dq brokenor.Dq off(i.e., its flags have .Dv LOG_CHANNEL_BROKENor.Dv LOG_CHANNEL_OFFset, respectively), or if the logging channel channel is of type.Dv log_null .Additionally, if the logging channel's flag has.Dv LOG_REQUIRE_DEBUGset and the message is not a debugging message (i.e., has a level greaterthan 0), then it will not be logged.Finally, if the message's priority is less important than thechannel's logging level (the priority threshold), will not be logged..Sy NOTE :If a logging channel's flag has.Dv LOG_USE_CONTEXT_LEVELset, it will use the logging context's priority, rather than its own..PpIf all of these hurdles are passed, then only.Dv log_syslogand.Dv log_filechannels actually can have logging.  For channels which use.Xr syslog 3 ,the channel's .Xr syslog 3facility is used in conjunction with a potentially modified form of themessage's priority level, since .Xr syslog 3has its own system of priorities.Pq Pa /usr/include/syslog.h . All debug messages (priority >= 0) are mapped to .Xr syslog 3 Ns 's.Dv LOG_DEBUGpriority, all messages .Dq more importantthan.Dv log_criticalare mapped to.Dv LOG_CRIT ,and the priorities corresponding to the ones listed in the section.Sx Message Prioritiesare given the obvious corresponding .Xr syslog 3priority..PpFor .Dv log_filetype logging channels, if the file size is greater than the maximum file size, then no logging occurs.  (The same thing happens if a .Dv NULLstream is encountered and.Fn log_open_streamfails to open the channel's stream.).PpFor both logging to normal files and logging via.Xr syslog 3 ,the value of the flags.Dv LOG_TIMESTAMP ,.Dv LOG_PRINT_CATEGORY , and.Dv LOG_PRINT_LEVEL are used in determining whether or not these items are included in the logged 

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲美女区一区| av中文字幕亚洲| 91亚洲精品久久久蜜桃| 日韩三级免费观看| 一区二区三区波多野结衣在线观看| 成人激情小说网站| 91精品在线免费| 一区二区三区四区高清精品免费观看 | 91视频你懂的| 精品国产一区二区精华| 亚洲bt欧美bt精品777| 91免费看片在线观看| 欧美精品一区视频| 老司机午夜精品| 欧美日本一道本| 亚洲成a人在线观看| 99精品视频一区二区| 欧美国产精品专区| 国产91丝袜在线播放0| www日韩大片| 久久草av在线| 欧美白人最猛性xxxxx69交| 午夜精品福利在线| 欧美私人免费视频| 亚洲一级片在线观看| 91美女蜜桃在线| 亚洲美女少妇撒尿| 在线精品视频免费播放| 亚洲美女淫视频| 91蜜桃网址入口| 亚洲色大成网站www久久九九| 99久久久国产精品免费蜜臀| 国产精品欧美综合在线| 成人午夜大片免费观看| 亚洲欧美日韩中文播放 | 亚洲精品久久久蜜桃| 色久优优欧美色久优优| 亚洲美女免费在线| 欧美日本一区二区三区| 久久丁香综合五月国产三级网站| 欧美一级高清片| 国产综合成人久久大片91| 国产亚洲短视频| 色素色在线综合| 肉肉av福利一精品导航| 久久一夜天堂av一区二区三区| 国内精品免费**视频| 国产精品久久久爽爽爽麻豆色哟哟| 91首页免费视频| 午夜精彩视频在线观看不卡| 777久久久精品| 国产精品性做久久久久久| 1024成人网| 8x8x8国产精品| 国产精品夜夜嗨| 亚洲国产精品一区二区久久恐怖片| 欧美精品成人一区二区三区四区| 国内精品嫩模私拍在线| 亚洲丝袜精品丝袜在线| 91麻豆精品国产91久久久久久| 久久不见久久见免费视频7| 国产精品国产成人国产三级 | 国产成人av福利| 亚洲人成影院在线观看| 欧美一区二区三区在线看| 国产伦精品一区二区三区免费 | 国产精品久久久久久久久免费桃花 | 精品视频一区二区不卡| 韩国精品主播一区二区在线观看 | 狠狠网亚洲精品| 一区二区三区高清在线| 精品久久久久久久人人人人传媒| 成人午夜电影久久影院| 奇米影视在线99精品| 亚洲男人的天堂av| 精品久久99ma| 欧美日韩不卡一区| 94-欧美-setu| 国产一区不卡精品| 日韩精品1区2区3区| 自拍偷拍国产精品| 国产日韩三级在线| 欧美精品日韩精品| 日本韩国欧美国产| 成人av电影在线| 国产一区二区久久| 免费一区二区视频| 午夜欧美电影在线观看| 中文字幕亚洲一区二区av在线| 欧美成人一区二区三区在线观看| 欧美视频精品在线观看| 99久久伊人久久99| 国产成人精品免费| 国内外成人在线视频| 美脚の诱脚舐め脚责91| 午夜精品一区在线观看| 亚洲自拍偷拍综合| 亚洲乱码日产精品bd| 国产精品欧美极品| 国产亚洲制服色| 欧美精品一区二区久久婷婷| 欧美一区二区三区成人| 欧美精品一级二级| 欧美日韩一级片网站| 在线看国产一区二区| 色综合久久久久综合| jlzzjlzz国产精品久久| 成人av第一页| 99久久久久久| 色综合色综合色综合 | 日本一区二区三区四区| 天天色天天操综合| 亚洲特黄一级片| 中文字幕一区二区三区在线观看 | 三级成人在线视频| 亚洲成人精品在线观看| 亚洲精品综合在线| 一区二区三区在线观看国产| 亚洲三级在线免费观看| 亚洲久草在线视频| 亚洲日本一区二区三区| 亚洲免费观看高清完整版在线观看 | 国产成人综合在线观看| 东方aⅴ免费观看久久av| 国产一区二区三区四区五区入口| 国产精品伊人色| av成人免费在线观看| 欧美在线视频日韩| 91精品国产全国免费观看| 91精品国产综合久久蜜臀| 欧美va亚洲va在线观看蝴蝶网| 久久久久久久综合色一本| 中文字幕av资源一区| 一区二区日韩电影| 日本亚洲视频在线| 成人丝袜18视频在线观看| 在线精品视频免费播放| 欧美成人精品福利| 亚洲欧美综合色| 免费在线观看日韩欧美| 成人免费av资源| 欧美日韩一区不卡| 久久久久久久电影| 亚洲欧美日韩国产手机在线| 日韩电影在线一区二区三区| 国产一区二区三区电影在线观看 | 欧洲视频一区二区| 日韩欧美三级在线| 综合久久久久久久| 爽好久久久欧美精品| 成人激情图片网| 日韩精品资源二区在线| 国产精品久久久久久久久动漫 | 亚洲一区在线观看视频| 久久精品国产亚洲高清剧情介绍| 99视频一区二区| 日韩美女一区二区三区| 亚洲视频在线一区观看| 蜜桃传媒麻豆第一区在线观看| 成人ar影院免费观看视频| 91精品国产综合久久精品性色| 亚洲国产精华液网站w| 日韩成人免费电影| 97精品久久久午夜一区二区三区| 欧美电视剧在线看免费| 一区二区三区精品视频| 高清国产一区二区三区| 日韩视频免费观看高清在线视频| 日韩毛片高清在线播放| 国产一区二区不卡在线| 这里只有精品99re| 亚洲免费视频中文字幕| 成人一区二区三区| 精品免费日韩av| 石原莉奈在线亚洲二区| 色噜噜狠狠色综合中国| 欧美国产禁国产网站cc| 激情图片小说一区| 日韩视频在线永久播放| 亚洲一区二区三区小说| 99精品视频一区| 国产精品的网站| 成人午夜在线视频| 国产欧美日本一区视频| 极品销魂美女一区二区三区| 欧美高清www午色夜在线视频| 夜夜嗨av一区二区三区网页| 99re这里只有精品视频首页| 中文字幕乱码日本亚洲一区二区| 精品一区二区三区免费播放| 日韩欧美www| 激情综合网av| 日韩美女天天操| 精品一区二区免费视频| 久久久久久久久久久久电影| 韩国三级在线一区| 久久久精品免费免费| 懂色av中文一区二区三区| 国产亚洲福利社区一区| 大白屁股一区二区视频|