⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.133
Server IP:
185.119.109.197
Server:
Linux managedhosting.chostar.me 5.15.0-160-generic #170-Ubuntu SMP Wed Oct 1 10:06:56 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.1.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
ri
/
3.0.0
/
system
/
Logger
/
Edit File: 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
Simpan