soveran / cuba

Rum based microframework for web development.
http://cuba.is
MIT License
1.44k stars 249 forks source link

is there any api for logger #67

Closed yosiyuki closed 9 years ago

yosiyuki commented 9 years ago

I'm newbie for cuba framework. Is there any api to log in log file like logger.debug in RoR?

djanowski commented 9 years ago

This is something built into Ruby's standard library:

require "logger"

$logger = Logger.new($stdout)

# ...

on root do
  $logger.info("Foo")
end

You can find us on IRC (#cuba.rb on Freenode) if you need more help.