match masters new logger ref
This commit is contained in:
parent
bbd9913372
commit
a5c2386853
1 changed files with 4 additions and 3 deletions
|
@ -162,12 +162,13 @@ module Middleman
|
||||||
# with_layout and page routing
|
# with_layout and page routing
|
||||||
include Middleman::CoreExtensions::Routing
|
include Middleman::CoreExtensions::Routing
|
||||||
|
|
||||||
attr_reader :logger
|
# Reference to Logger singleton
|
||||||
|
def logger
|
||||||
|
::Middleman::Logger.singleton
|
||||||
|
end
|
||||||
|
|
||||||
# Initialize the Middleman project
|
# Initialize the Middleman project
|
||||||
def initialize(&block)
|
def initialize(&block)
|
||||||
@logger = ::Middleman::Logger.singleton
|
|
||||||
|
|
||||||
# Clear the static class cache
|
# Clear the static class cache
|
||||||
cache.clear
|
cache.clear
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue