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

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

?? logging.mdoc

?? bind-3.2.
?? MDOC
?? 第 1 頁 / 共 2 頁
字號:
.\" $Id: logging.mdoc,v 1.1.2.1 2001/11/02 21:06:02 gson Exp $.\".\"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 INTERNET SOFTWARE CONSORTIUM DISCLAIMS.\"ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES.\"OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE.\"CONSORTIUM 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一区二区三区免费野_久草精品视频
538prom精品视频线放| 首页综合国产亚洲丝袜| 一区二区三区在线不卡| 极品销魂美女一区二区三区| 91欧美一区二区| 国产午夜亚洲精品理论片色戒 | 成人一区二区三区视频在线观看| 91色.com| 国产精品久久免费看| 久久疯狂做爰流白浆xx| 91久久香蕉国产日韩欧美9色| 久久精品欧美日韩| 麻豆成人久久精品二区三区红 | 三级欧美在线一区| 91蜜桃网址入口| 国产精品私人影院| 国产综合久久久久久久久久久久| 3751色影院一区二区三区| 尤物视频一区二区| 91蜜桃免费观看视频| 欧美激情一区二区三区不卡| 老汉av免费一区二区三区| 日韩一区二区免费在线观看| 五月婷婷激情综合| 欧美丰满少妇xxxbbb| 亚洲图片一区二区| 欧美久久久久中文字幕| 午夜精品一区二区三区三上悠亚| 欧美在线观看一二区| 亚洲综合在线视频| 欧美天堂一区二区三区| 亚洲综合免费观看高清在线观看| av一区二区久久| 亚洲人成网站在线| 欧美色老头old∨ideo| 午夜影院久久久| 欧美一激情一区二区三区| 午夜精品123| 欧美成人性福生活免费看| 另类小说一区二区三区| 久久久久久**毛片大全| 成熟亚洲日本毛茸茸凸凹| 国产精品国产三级国产aⅴ中文 | 亚洲综合激情小说| 国产在线精品免费| 欧美精品久久天天躁| 亚洲欧美乱综合| 91国偷自产一区二区使用方法| 一区二区三区免费看视频| 色婷婷综合视频在线观看| 亚洲一二三四久久| 亚洲第一狼人社区| 国产在线精品一区二区不卡了| 欧美三级视频在线| 最新中文字幕一区二区三区| 国产一区二区免费视频| 欧美一区二区三区在| 夜色激情一区二区| 91网页版在线| 中文字幕一区二区三区精华液| 精品午夜久久福利影院| 欧美日韩一区二区欧美激情| 国产精品久久久久影院色老大 | 久久精品亚洲一区二区三区浴池| 亚洲激情av在线| 91在线观看美女| 国产精品色一区二区三区| 国产69精品久久久久777| 精品久久一区二区三区| 极品美女销魂一区二区三区免费| 7777精品伊人久久久大香线蕉最新版| 一区二区三区精品在线| 在线亚洲免费视频| 亚洲一区二区三区视频在线播放| 91在线观看成人| 一区二区欧美在线观看| 91免费视频网址| 亚洲国产精品一区二区久久| 欧美在线观看视频一区二区三区| 一二三四区精品视频| 欧美视频日韩视频| 五月婷婷欧美视频| 日韩欧美一区电影| 国产在线麻豆精品观看| 国产日产欧美一区| 91啪在线观看| 五月婷婷色综合| 久久婷婷综合激情| 国产99久久久国产精品免费看| 欧美激情在线一区二区| 91丨九色porny丨蝌蚪| 亚欧色一区w666天堂| 欧美一级日韩免费不卡| 国精产品一区一区三区mba视频| 日本一区二区三级电影在线观看| 成人小视频在线| 亚洲福利视频导航| 2020国产精品自拍| 99re这里只有精品6| 亚洲成人av资源| 久久丝袜美腿综合| 在线看国产一区二区| 麻豆久久一区二区| 中文字幕亚洲精品在线观看| 欧美亚洲综合色| 国产精品18久久久久久久久久久久| 中文字幕精品—区二区四季| 欧美午夜影院一区| 国产a久久麻豆| 亚洲v中文字幕| 日本一区二区三区视频视频| 欧美系列亚洲系列| 国产精品538一区二区在线| 一区2区3区在线看| 亚洲精品一区二区三区四区高清| 99综合电影在线视频| 日本三级韩国三级欧美三级| 久久久久久久综合日本| 欧美酷刑日本凌虐凌虐| 91丝袜呻吟高潮美腿白嫩在线观看| 免费成人美女在线观看| 亚洲美女偷拍久久| 国产欧美一区在线| 欧美大片顶级少妇| 欧美亚洲国产bt| 丁香婷婷综合网| 精品一区二区三区在线播放视频| 一区二区三区在线视频免费| 久久久久国产成人精品亚洲午夜| 欧美日韩国产电影| 色天天综合久久久久综合片| 久久精品99国产精品日本| 亚洲图片欧美视频| 亚洲精品免费在线播放| 国产精品热久久久久夜色精品三区| 日韩精品一区二区三区四区视频| 欧美色视频一区| 在线精品视频小说1| 99国产精品视频免费观看| 国产精品影音先锋| 黑人巨大精品欧美黑白配亚洲| 天天色天天操综合| 天天综合色天天综合| 五月婷婷另类国产| 日韩高清电影一区| 午夜欧美2019年伦理| 亚洲一区电影777| 亚洲精品乱码久久久久久久久 | 久久久91精品国产一区二区精品| 欧美福利视频一区| 69精品人人人人| 制服丝袜一区二区三区| 5566中文字幕一区二区电影| 欧美日韩一区二区在线观看视频| 色综合久久综合| 日本道精品一区二区三区| 日本乱码高清不卡字幕| 在线精品国精品国产尤物884a| 91丨九色porny丨蝌蚪| 欧美午夜精品久久久久久孕妇 | 久久99精品久久只有精品| 奇米一区二区三区| 蜜臀av亚洲一区中文字幕| 精品在线播放免费| 国产乱码精品一区二区三区av| 国产激情一区二区三区四区| voyeur盗摄精品| 在线观看日韩高清av| 日韩欧美国产小视频| 精品处破学生在线二十三| 国产欧美日韩另类一区| 亚洲免费在线视频| 日韩 欧美一区二区三区| 国内精品国产成人| 99国产精品久久久久久久久久 | 亚洲欧美日韩久久| 午夜一区二区三区视频| 韩国v欧美v亚洲v日本v| av影院午夜一区| 欧美一级专区免费大片| 国产日韩欧美综合在线| 亚洲精品久久久久久国产精华液| 婷婷久久综合九色国产成人| 国产精品一区免费在线观看| 色偷偷成人一区二区三区91| 日韩一区二区三区精品视频 | 91九色02白丝porn| 日韩欧美中文字幕公布| 亚洲日本在线看| 极品销魂美女一区二区三区| 色噜噜狠狠成人中文综合| 精品少妇一区二区三区在线播放 | 91美女精品福利| 日韩欧美一卡二卡| 亚洲精选免费视频| 国产精品一区二区久久精品爱涩| 91激情五月电影| 国产精品美女久久久久av爽李琼| 日韩精品每日更新| 在线欧美小视频|