⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 logger.texi

📁 压缩包中包含LINUX下多个命令的源码
💻 TEXI
字号:
@node logger@chapter logger@cindex logger@command{logger} is a program to make entries in the system log files.It provides a shell command interface to the system log module.@xref{Syslog, , Syslog, libc, The GNU C Library Reference Manual}, fordetails.The message can contain a priority code, which should be a precedingdecimal number in angle braces, for example, @code{<5>}.  This prioritycode should map into the priorities defined in the include file@code{<sys/syslog.h>}.@section InvokingThe options are as follows :@table @samp@item -i@opindex -iLog the process ID of the logger process with each line.@item -s@opindex -sLog the message to standard error, as well as the system log.  Thisoption might not be supported on all systems.@item -f FILE@itemx --file=FILE@opindex -f FILE@opindex --file=FILELog the content of the specified file.@item -p PRIORITY@itemx --priority=PRIORITY@opindex -p PRIORITY@opindex --priority=PRIORITYEnter the message with the specified priority.  The priority may bespecified numerically or as a @samp{facility.level} pair.  Forexample, @samp{-p local3.info} logs the message at the informationallevel in the @samp{local3} facility.  The default is@samp{user.notice}.The actual list of supported facilities and levels is system specific.@item -t TAG@itemx --tag=TAG@opindex -t TAG@opindex --tag=TAGMark every line in the log with the specified tag.@end tableThe options are followed by the message which should be written to thelog.  If not specified, and the -f flag is not provided, standardinput is logged.The logger utility exits 0 on success, and >0 if an error occurs.The following examples illustrate the usage of the @command{logger}command.@examplelogger System rebootedlogger -p local0.notice -t HOSTIDM -f /dev/idmc@end example

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -