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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? logging.mdoc

?? package of develop dns
?? MDOC
?? 第 1 頁 / 共 2 頁
字號(hào):
.\" $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 

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产成人aaa| eeuss鲁片一区二区三区在线观看| 国产网站一区二区三区| 日韩一卡二卡三卡四卡| 日韩一卡二卡三卡国产欧美| 日韩一级免费一区| 精品捆绑美女sm三区| 精品国产免费一区二区三区香蕉| 日韩精品中午字幕| 久久综合久久综合久久| 中文字幕第一区第二区| 一区二区三区欧美日韩| 日日摸夜夜添夜夜添亚洲女人| 丝袜美腿亚洲综合| 国内精品不卡在线| aa级大片欧美| 欧美理论片在线| 精品剧情v国产在线观看在线| 久久伊99综合婷婷久久伊| 国产精品久久综合| 亚洲综合色婷婷| 精品一区二区免费| 99久久精品一区| 91精品国产乱码| 国产精品国产三级国产aⅴ中文 | 一区二区三区精品在线观看| 亚洲超丰满肉感bbw| 韩国欧美国产1区| 色婷婷久久久亚洲一区二区三区| 7777精品久久久大香线蕉| 久久色在线视频| 亚洲综合一区在线| 国产麻豆日韩欧美久久| 在线免费精品视频| 久久精品欧美日韩| 亚洲国产欧美另类丝袜| 国产黄色精品网站| 欧美精品777| 日韩美女啊v在线免费观看| 日韩不卡一二三区| 色综合天天做天天爱| www成人在线观看| 亚洲国产婷婷综合在线精品| 国产精品一区在线观看你懂的| 99精品热视频| 国产日韩v精品一区二区| 午夜a成v人精品| 一本一道波多野结衣一区二区| 亚洲精品一区二区三区99| 亚洲影视在线播放| eeuss鲁片一区二区三区在线观看 eeuss鲁片一区二区三区在线看 | 在线不卡中文字幕| 亚洲欧美成人一区二区三区| 国产毛片精品国产一区二区三区| 色8久久人人97超碰香蕉987| 国产欧美一区二区精品仙草咪| 日本午夜一区二区| 欧美精品日韩精品| 一区二区三区在线观看欧美| av不卡一区二区三区| 中文一区一区三区高中清不卡| 美国三级日本三级久久99| 制服丝袜亚洲精品中文字幕| 亚洲精品第一国产综合野| 99久久99久久免费精品蜜臀| 欧美激情一区二区三区全黄| 国产一区二区视频在线| 精品国产自在久精品国产| 三级在线观看一区二区| 欧美久久久久免费| 日本va欧美va精品| 日韩欧美专区在线| 麻豆精品一二三| 精品国产一区二区亚洲人成毛片| 麻豆精品新av中文字幕| 精品国产成人在线影院| 国产精品1区2区| 中文字幕高清不卡| 99精品桃花视频在线观看| 日韩美女视频一区| 欧美日韩免费一区二区三区视频 | 日韩视频一区二区在线观看| 日本不卡不码高清免费观看| 在线播放亚洲一区| 狠狠色综合日日| 亚洲国产成人自拍| 欧美自拍偷拍午夜视频| 亚洲一区二区三区国产| 欧美精品自拍偷拍| 国产又黄又大久久| 国产精品久久久久影院老司| 欧美综合色免费| 日本网站在线观看一区二区三区| 日韩精品一区二区三区在线 | 欧美精品自拍偷拍| 久久国产生活片100| 欧美国产综合一区二区| 欧美最猛黑人xxxxx猛交| 日本系列欧美系列| 欧美韩日一区二区三区| 欧美色爱综合网| 精品一区二区三区免费播放| 中文在线一区二区| 欧美日韩色综合| 国产一区二区剧情av在线| 亚洲免费伊人电影| 精品欧美一区二区在线观看| k8久久久一区二区三区| 五月激情六月综合| 国产清纯美女被跳蛋高潮一区二区久久w | 欧美电视剧在线观看完整版| kk眼镜猥琐国模调教系列一区二区| 一区二区三区久久久| 国产亚洲欧美中文| 欧美人与z0zoxxxx视频| 国产成人综合视频| 亚洲不卡在线观看| 亚洲人亚洲人成电影网站色| 日韩美女视频一区二区在线观看| 99re热视频这里只精品| 激情综合网最新| 丝袜美腿一区二区三区| 亚洲色图在线看| 久久香蕉国产线看观看99| 欧美日韩国产经典色站一区二区三区 | 亚洲精选视频在线| 久久久精品黄色| 欧美一区二区三区四区高清| 91色porny在线视频| 国产九色精品成人porny| 亚洲国产一二三| 一区二区三区自拍| 国产精品成人一区二区三区夜夜夜| 欧美一区二区三区免费观看视频| 色婷婷精品大视频在线蜜桃视频| 国产一本一道久久香蕉| 久久精品国产精品亚洲综合| 午夜精品久久久| 亚洲一区二区三区四区在线观看 | 日韩一区二区麻豆国产| 欧美日韩第一区日日骚| 色综合久久精品| 91在线播放网址| 95精品视频在线| a级精品国产片在线观看| 成人精品国产免费网站| 国产成人精品亚洲777人妖| 国产一区二区在线免费观看| 国产一区二区精品久久| 国产成人av电影在线播放| 国产精品 欧美精品| 国产成人福利片| 99久久99久久精品免费观看| 91亚洲永久精品| 欧美在线啊v一区| 在线观看91av| 精品成人私密视频| 中文av字幕一区| 日韩久久一区二区| 一区二区理论电影在线观看| 亚洲123区在线观看| 日韩高清不卡在线| 久久国产日韩欧美精品| 国产宾馆实践打屁股91| 一本大道综合伊人精品热热| 欧美日韩五月天| 日韩免费性生活视频播放| 国产欧美一区二区精品忘忧草| 国产精品成人午夜| 一区二区免费看| 久久99精品国产.久久久久| 国产高清久久久| 在线区一区二视频| 日韩精品专区在线| 中文字幕人成不卡一区| 五月天一区二区| 国产一区福利在线| 在线视频亚洲一区| 日韩女同互慰一区二区| 成人欧美一区二区三区白人| 天堂久久久久va久久久久| 国产一区二区三区在线观看精品 | 蜜臀91精品一区二区三区| 国产成人8x视频一区二区 | 国产91在线观看| 色综合天天综合狠狠| 欧美一级二级三级乱码| 国产精品毛片大码女人| 日韩国产在线观看| 91麻豆国产香蕉久久精品| 欧美一区二区视频在线观看| 综合电影一区二区三区| 喷水一区二区三区| 色av综合在线| 日本一区二区在线不卡| 天天色图综合网| 91视频精品在这里| 国产喷白浆一区二区三区| 日av在线不卡| 在线观看日韩毛片|