File: C:/Ruby27-x64/share/ri/2.7.0/system/Logger/info-i.ri
U:RDoc::AnyMethod[iI" info:ETI"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