| Server IP : 162.214.74.102 / Your IP : 216.73.217.21 Web Server : Apache System : Linux dedi-4363141.lrsys.com.br 3.10.0-1160.119.1.el7.tuxcare.els25.x86_64 #1 SMP Wed Oct 1 17:37:27 UTC 2025 x86_64 User : lrsys ( 1015) PHP Version : 5.6.40 Disable Function : exec,passthru,shell_exec,system MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/self/root/opt/cpanel/ea-ruby24/root/usr/share/ri/system/Logger/ |
Upload File : |
U:RDoc::AnyMethod[iI" info:EFI"Logger#info;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"Log an +INFO+ message.;To:RDoc::Markup::BlankLine o:RDoc::Markup::List:
@type: NOTE:@items[o:RDoc::Markup::ListItem:@label[I"+message+;T; [o;
; [I"6The message to log; does not need to be a String.;To;;[I"+progname+;T; [o;
; [I"<In the block form, this is the #progname to use in the ;TI":log message. The default can be set with #progname=.;To;;[I"+block+;T; [o;
; [ I"DEvaluates to the message to log. This is not evaluated unless ;TI"@the logger's level is sufficient to log the message. This ;TI"Fallows you to create potentially expensive logging messages that ;TI"@are only called when the logger is configured to show them.;T@S:RDoc::Markup::Heading:
leveli: textI"
Examples;T@o:RDoc::Markup::Verbatim; [
I"Alogger.info("MainApp") { "Received connection from #{ip}" }
;TI"# ...
;TI"/logger.info "Waiting for input from user"
;TI"# ...
;TI"+logger.info { "User typed #{input}" }
;T:@format0o;
; [I"RYou'll probably stick to the second form above, unless you want to provide a ;TI"=program name (which you can do with #progname= as well).;T@S;;i;I"Return;T@o;
; [I"See #add.;T:
@fileI"lib/logger.rb;T:0@omit_headings_from_table_of_contents_below0I"*info(message)
info(progname, &block)
;T0[ I"(progname = nil, &block);T@<FI"Logger;TcRDoc::NormalClass00