Gestionnaire de fichiers - Editer - /opt/cpanel/ea-ruby24/root/usr/share/ri/system/Syslog/Logger/cdesc-Logger.ri
Arrière
U:RDoc::NormalClass[iI"Logger:ETI"Syslog::Logger;TI"Object;To:RDoc::Markup::Document:@parts[o;;[o:RDoc::Markup::Paragraph;[I"PSyslog::Logger is a Logger work-alike that logs via syslog instead of to a ;TI"Jfile. You can use Syslog::Logger to aggregate logs between multiple ;TI"machines.;To:RDoc::Markup::BlankLine o; ;[I"NBy default, Syslog::Logger uses the program name 'ruby', but this can be ;TI":changed via the first argument to Syslog::Logger.new.;T@o; ;[ I"PNOTE! You can only set the Syslog::Logger program name when you initialize ;TI"ISyslog::Logger for the first time. This is a limitation of the way ;TI"KSyslog::Logger uses syslog (and in some ways, a limitation of the way ;TI"Osyslog(3) works). Attempts to change Syslog::Logger's program name after ;TI".the first initialization will be ignored.;T@S:RDoc::Markup::Heading: leveli: textI"Example;T@o; ;[I"=The following will log to syslogd on your local machine:;T@o:RDoc::Markup::Verbatim;[ I"require 'syslog/logger' ;TI" ;TI"+log = Syslog::Logger.new 'my_program' ;TI"7log.info 'this line will be logged via syslog(3)' ;T:@format0o; ;[I"SAlso the facility may be set to specify the facility level which will be used:;T@o;;[ I"Mlog.info 'this line will be logged using Syslog default facility level' ;TI" ;TI"Flog_local1 = Syslog::Logger.new 'my_program', Syslog::LOG_LOCAL1 ;TI"Llog_local1.info 'this line will be logged using local1 facility level' ;T;0o; ;[I"RYou may need to perform some syslog.conf setup first. For a BSD machine add ;TI"-the following lines to /etc/syslog.conf:;T@o;;[I"!my_program ;TI"M*.* /var/log/my_program.log ;T;0o; ;[I"FThen touch /var/log/my_program.log and signal syslogd with a HUP ;TI"((killall -HUP syslogd, on FreeBSD).;T@o; ;[I"KIf you wish to have logs automatically roll over and archive, see the ;TI"2newsyslog.conf(5) and newsyslog(8) man pages.;T: @fileI"$ext/syslog/lib/syslog/logger.rb;T:0@omit_headings_from_table_of_contents_below0;0;0[[ I" facility;TI"RW;T:publicFI"$ext/syslog/lib/syslog/logger.rb;T[ I"formatter;TI"RW;T;F@H[ I" level;TI"RW;T;F@H[U:RDoc::Constant[i I"VERSION;FI"Syslog::Logger::VERSION;T00o;;[o; ;[I"1The version of Syslog::Logger you are using.;T;@C;0@C@cRDoc::NormalClass0U;[i I"LEVEL_MAP;FI"Syslog::Logger::LEVEL_MAP;T00o;;[o; ;[I":Maps Logger warning types to syslog(3) warning types.;T@o; ;[ I"PMessages from Ruby applications are not considered as critical as messages ;TI"Pfrom other system daemons using syslog(3), so most messages are reduced by ;TI"None level. For example, a fatal message for Ruby's Logger is considered ;TI"an error for syslog(3).;T;@C;0@C@@Y0[ [[I" class;T[[;[ [I"make_methods;F@H[I"new;T@H[I"syslog;F@H[I"syslog=;F@H[:protected[ [:private[ [I" instance;T[[;[[I"add;F@H[I" debug;T@H[I" error;T@H[I" fatal;T@H[I" info;T@H[I"unknown;T@H[I" warn;T@H[;[ [;[ [ [U:RDoc::Context::Section[i 0o;;[ ;0;0[@C@CcRDoc::TopLevel
| ver. 1.4 |
Github
|
.
| PHP 8.0.30 | Génération de la page: 0.05 |
proxy
|
phpinfo
|
Réglages