Add logger macro to easily setup custom log_handler

This commit is contained in:
sdogruyol 2016-02-12 16:09:15 +02:00
parent 3c75d727ba
commit 8f5bc755ae
5 changed files with 16 additions and 8 deletions

View file

@ -29,10 +29,4 @@ describe "Config" do
config.handlers.size.should eq(1)
end
it "sets a custom logger" do
config = Kemal::Config::INSTANCE
config.logger = CustomLogHandler.new("production")
config.handlers.first.should be_a(CustomLogHandler)
config.logger.should be_a(CustomLogHandler)
end
end