README.rdoc in lumber-0.9.4 vs README.rdoc in lumber-0.9.5

- old
+ new

@@ -21,10 +21,17 @@ Lumber.setup_logger_hierarchy("ActionMailer::Base", "rails::mailers") # If you really want, you can make all classes have a logger # Lumber.setup_logger_hierarchy("Object", "root::object") - +Additionally, you can also add loggers to individual classes by including the LumberLoggerSupport module + class Foo + include Lumber::LoggerSupport + end + +and Foo.logger/Foo.new.logger will log to a logger named "rails::Foo". This creates a heirarchy of loggers for classes +nested within modules, so you can use the namespace to enable/disable loggers + If you want to change the log level for a different environment, add a line like below to the config/environments/<env>.rb # Set info as the default log level for production Log4r::Logger.root.level = Log4r::INFO