亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
国产成人免费在线观看不卡| 一区二区三区欧美亚洲| 国产午夜精品一区二区三区嫩草 | 国产 欧美在线| 欧美日韩国产综合草草| 国产精品久久国产精麻豆99网站| 日韩精品1区2区3区| 色综合色综合色综合色综合色综合 | 这里只有精品视频在线观看| 最近日韩中文字幕| 国产mv日韩mv欧美| 久久综合色鬼综合色| 三级久久三级久久| 欧美色图免费看| 亚洲黄网站在线观看| 国产成人久久精品77777最新版本| 欧美嫩在线观看| 亚洲一区在线免费观看| 成人av在线网站| 欧美高清在线视频| 国产一区二区在线看| 日韩丝袜情趣美女图片| 日韩精品亚洲专区| 91精品国产一区二区三区香蕉| 亚洲综合图片区| 在线视频欧美区| 亚洲综合在线免费观看| 91美女片黄在线观看91美女| 国产精品福利影院| 99这里都是精品| 日韩毛片一二三区| 91激情五月电影| 亚洲一区二区欧美激情| 欧美日韩一区二区三区四区 | 欧美中文字幕久久| 亚洲精品成人悠悠色影视| 色综合天天天天做夜夜夜夜做| 中文字幕av不卡| av午夜精品一区二区三区| 亚洲免费在线看| 色8久久精品久久久久久蜜| 亚洲精品欧美激情| 5月丁香婷婷综合| 久久国产精品色婷婷| 久久久青草青青国产亚洲免观| 国产成人免费视频一区| 亚洲三级电影网站| 欧美日韩高清在线播放| 日本伊人精品一区二区三区观看方式| 欧美一区二区三区日韩视频| 久久99最新地址| 日本一区二区高清| 日本韩国欧美一区二区三区| 三级成人在线视频| 久久久久国产精品人| gogo大胆日本视频一区| 亚洲制服丝袜av| 精品欧美乱码久久久久久| 春色校园综合激情亚洲| 亚洲国产中文字幕| 久久尤物电影视频在线观看| 成人av午夜电影| 日韩精品电影在线| 国产农村妇女毛片精品久久麻豆| 日本高清免费不卡视频| 九色porny丨国产精品| 国产精品色呦呦| 91精品国产91久久久久久最新毛片| 九九九久久久精品| 亚洲最色的网站| 久久久久久久久一| 在线精品视频一区二区三四| 国内成人自拍视频| 亚洲国产精品麻豆| 欧美激情一区二区三区蜜桃视频 | 亚洲在线观看免费视频| 精品欧美一区二区三区精品久久| 91丨九色丨黑人外教| 美女任你摸久久| 亚洲视频在线观看一区| 欧美大白屁股肥臀xxxxxx| 一本久久精品一区二区| 国内精品久久久久影院色| 一区二区日韩电影| 国产精品卡一卡二卡三| 日韩美女视频在线| 欧美三级中文字幕| 91亚洲午夜精品久久久久久| 久久99久久久久| 亚洲乱码一区二区三区在线观看| 精品国产成人在线影院| 91精品国产一区二区| 91成人看片片| caoporen国产精品视频| 国产另类ts人妖一区二区| 天使萌一区二区三区免费观看| 国产精品乱码一区二区三区软件| 日韩精品中文字幕一区二区三区 | 日韩国产精品91| 亚洲精品乱码久久久久久久久| 亚洲国产高清不卡| 2020国产精品久久精品美国| 日韩一级免费观看| 欧美高清www午色夜在线视频| 在线观看av一区| 91久久一区二区| 色哟哟国产精品免费观看| 99久久亚洲一区二区三区青草| 国产乱码一区二区三区| 国内成+人亚洲+欧美+综合在线| 日韩国产欧美一区二区三区| 日韩精品欧美精品| 丝袜亚洲另类欧美| 免费观看日韩av| 免费一级欧美片在线观看| 青青草原综合久久大伊人精品优势 | 国产一区二区在线电影| 国产一区二区三区av电影| 久久99精品国产麻豆婷婷洗澡| 蜜桃传媒麻豆第一区在线观看| 麻豆91在线播放| 国产在线麻豆精品观看| 国产成人精品三级麻豆| 国产91在线观看| 9l国产精品久久久久麻豆| av不卡免费在线观看| 色88888久久久久久影院野外| 欧美自拍偷拍午夜视频| 欧美美女一区二区| 日韩三级免费观看| 26uuu精品一区二区在线观看| 国产网红主播福利一区二区| 日本一区二区电影| 一个色综合av| 日产欧产美韩系列久久99| 国产一区二区视频在线播放| 成人深夜视频在线观看| 色婷婷激情久久| 91精品婷婷国产综合久久 | 91精品国产一区二区| 久久先锋影音av鲁色资源网| 中文一区在线播放| 亚洲午夜日本在线观看| 久久精品国产免费| 白白色 亚洲乱淫| 欧美日韩免费电影| 久久男人中文字幕资源站| 国产精品久久久久aaaa樱花| 樱桃视频在线观看一区| 日本视频一区二区| 99久久免费精品高清特色大片| 欧美另类高清zo欧美| 中文字幕巨乱亚洲| 青草国产精品久久久久久| 成人理论电影网| 欧美一区二区三区性视频| 国产清纯美女被跳蛋高潮一区二区久久w | 免费成人你懂的| 不卡电影免费在线播放一区| 91精选在线观看| 亚洲视频你懂的| 精品中文字幕一区二区小辣椒| 99国产欧美另类久久久精品| 日韩欧美亚洲国产另类| 亚洲在线观看免费视频| 国产精品一区二区黑丝| 欧美日韩不卡在线| 亚洲三级理论片| 国产精品一二三四五| 欧美日韩大陆在线| ●精品国产综合乱码久久久久| 麻豆极品一区二区三区| 色八戒一区二区三区| 日本一区二区动态图| 久久99热99| 91精品国产91综合久久蜜臀| 一区二区三区欧美日| 成人高清视频在线观看| 精品久久久久久综合日本欧美| 一区二区三区在线视频观看58| 福利一区在线观看| 久久综合狠狠综合久久激情| 日韩精品国产精品| 欧美色综合网站| 一区二区三区小说| 91麻豆国产香蕉久久精品| 国产精品私人自拍| 国产精品自拍在线| 久久午夜国产精品| 九九精品一区二区| 欧美大肚乱孕交hd孕妇| 免费在线观看一区二区三区| 欧美日韩精品一区视频| 艳妇臀荡乳欲伦亚洲一区| 色婷婷精品久久二区二区蜜臀av| 亚洲欧美在线aaa| av成人动漫在线观看| 亚洲三级电影网站| 色视频欧美一区二区三区| 亚洲激情六月丁香|