Complete decoupling logger

This commit is contained in:
sdogruyol 2016-02-12 14:11:21 +02:00
parent 52538afb10
commit 3c75d727ba
9 changed files with 53 additions and 28 deletions

View file

@ -31,7 +31,8 @@ describe "Config" do
it "sets a custom logger" do
config = Kemal::Config::INSTANCE
config.logger = CustomTestHandler.new
config.handlers.first.should be_a(CustomTestHandler)
config.logger = CustomLogHandler.new("production")
config.handlers.first.should be_a(CustomLogHandler)
config.logger.should be_a(CustomLogHandler)
end
end