How to create the log

How to create the log in ruby.

On Tue, May 11, 2010 at 11:55 PM, KingMaker KingMaker
<[email protected]

wrote:

How to create the log in ruby.

Posted via http://www.ruby-forum.com/.

http://ruby-doc.org/core/classes/Math.html#M003708

Math::log(Math::E) # => 1.0
Math::log10(10) # => 1.0

for kinder syntax, you can include the Math module

include Math
log(E) # => 1.0
log10(10) # => 1.0

Josh C. wrote:

Math::log(Math::E) # => 1.0
Math::log10(10) # => 1.0

for kinder syntax, you can include the Math module

include Math
log(E) # => 1.0
log10(10) # => 1.0

Or maybe the OP was looking for logger.rb in the standard library:
http://svn.ruby-lang.org/repos/ruby/trunk/lib/logger.rb
or one of the gems like log4r. Who knows?

There is good advice on asking questions in a way more likely to get the
answers you want, here:
http://www.catb.org/~esr/faqs/smart-questions.html#intro

On Tue, May 11, 2010 at 11:55 PM, KingMaker KingMaker
[email protected] wrote:

How to create the log in ruby.

Log.new

On May 11, 2010, at 10:55 PM, KingMaker KingMaker wrote:

How to create the log in ruby.

toilet = $stdout

toilet.puts Marshal.dump(‘log’)
toilet.flush