From 22b61e13a9039363baf18d17408859103ac874f8 Mon Sep 17 00:00:00 2001 From: Chris Eppstein Date: Thu, 7 May 2009 20:08:19 -0700 Subject: [PATCH] Added a NullLogger class that can be used to silence the compiler output via the :logger option. --- lib/compass/logger.rb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/compass/logger.rb b/lib/compass/logger.rb index 152ed72e..d48eecaf 100644 --- a/lib/compass/logger.rb +++ b/lib/compass/logger.rb @@ -31,4 +31,12 @@ module Compass @max_action_length ||= actions.inject(0){|memo, a| [memo, a.to_s.length].max} end end + + class NullLogger + def record(*args) + end + + def log(msg) + end + end end \ No newline at end of file