How to create the log

How to create the log in ruby.

···

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

# module Math - RDoc Documentation
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

···

On Tue, May 11, 2010 at 11:55 PM, KingMaker KingMaker <sweetzubair@gmail.com > wrote:

How to create the log in ruby.
--
Posted via http://www.ruby-forum.com/\.

Log.new

···

On Tue, May 11, 2010 at 11:55 PM, KingMaker KingMaker <sweetzubair@gmail.com> wrote:

How to create the log in ruby.

toilet = $stdout

toilet.puts Marshal.dump('log')
toilet.flush

···

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

How to create the log in ruby.

Josh Cheek 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

···

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