⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.93
Server IP:
65.108.141.171
Server:
Linux server.heloix.com 5.4.0-214-generic #234-Ubuntu SMP Fri Mar 14 23:50:27 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
7.4.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
ri
/
2.7.0
/
system
/
Logger
/
View File Name :
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