Class | Sass::Logger::Delayed |
In: |
lib/sass/logger/delayed.rb
|
Parent: | Sass::Logger::Base |
A logger that delays messages until they‘re explicitly flushed to an inner logger.
This can be installed around the current logger by calling \{install!}, and the original logger can be replaced by calling \{uninstall!}. The log messages can be flushed by calling \{flush}.
Installs a new delayed logger as the current Sass logger, wrapping the original logger.
This can be undone by calling \{uninstall!}.
@return [Sass::Logger::Delayed] The newly-created logger.
Creates a delayed logger wrapping `inner`.
@param inner [Sass::Logger::Base] The wrapped logger.
Uninstalls this logger from \{Sass.logger\}. This should only be called if the logger was installed using \{install!}