44use Neos \Error \Messages \Message ;
55use Neos \Flow \Annotations as Flow ;
66use Neos \ContentRepository \Domain \Model \NodeInterface ;
7- use Neos \Flow \Log \SystemLoggerInterface ;
87use Sitegeist \Taxonomy \Service \TaxonomyService ;
98use Sitegeist \Taxonomy \Service \DimensionService ;
9+ use Psr \Log \LoggerInterface ;
1010
1111/**
1212 * Class ContentRepositoryHooks
@@ -17,10 +17,10 @@ class ContentRepositoryHooks
1717{
1818
1919 /**
20- * @var SystemLoggerInterface
20+ * @var LoggerInterface
2121 * @Flow\Inject
2222 */
23- protected $ systemLogger ;
23+ protected $ logger ;
2424
2525 /**
2626 * @var TaxonomyService
@@ -46,7 +46,7 @@ class ContentRepositoryHooks
4646 */
4747 public function nodeAdded (NodeInterface $ node )
4848 {
49- $ this ->systemLogger -> log ( new Message ( sprintf ("CREATED NODE %S " , $ node ->getContextPath () )));
49+ $ this ->logger -> info ( sprintf ("CREATED NODE %S " , $ node ->getContextPath ()));
5050
5151 if ($ node ->getNodeType ()->isOfType ($ this ->taxonomyService ->getRootNodeType ()) ||
5252 $ node ->getNodeType ()->isOfType ($ this ->taxonomyService ->getVocabularyNodeType ()) ||
@@ -66,7 +66,7 @@ public function nodeAdded(NodeInterface $node)
6666 */
6767 public function nodeRemoved (NodeInterface $ node )
6868 {
69- $ this ->systemLogger -> log ( new Message ( sprintf ("CREATED NODE %S " , $ node ->getContextPath () )));
69+ $ this ->logger -> info ( sprintf ("CREATED NODE %S " , $ node ->getContextPath ()));
7070
7171 if ($ node ->getNodeType ()->isOfType ($ this ->taxonomyService ->getRootNodeType ()) ||
7272 $ node ->getNodeType ()->isOfType ($ this ->taxonomyService ->getVocabularyNodeType ()) ||
0 commit comments