FRESH → the Hive

Fresh from the Hive is Studio Melipone's weblog about visual delights, startup love and much more.

As opposed to whatever SEO stuff you should pay attention to this blog is run in a complete natural non sense. Enjoy!

Why don't you grab our RSS?

 

#rails Log config

A really small & simple trick to avoid headaches…

… When you use your own Logger in your rails app, and want to keep control of the logging level.


Use :

  1. config.logger.level = Logger::WARN

instead of :

  1. config.logger.level = :warn

When you use a custom Logger instead of the default one :

  1. config.logger = Logger.new( “my_path/my_logfile.log”, 50, 10000 )
Because the logging level you customized too won’t work with symbols.