I looked around and couldn't find one. Is there an equivalent of Log4X for Ruby? If not what's the best way to handle all the debug statements. I'm fairly new to Ruby.
Thanks!
Ruby comes with a built in logging library, but there's log4r.
A short example of the built in library:
#!/usr/bin/env ruby
require 'logger'
log = Logger.new('mylog.txt')
log.debug "Hello log"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With