1313
1414trait Loggable
1515{
16- private $ icl ;
16+ private $ icLogger ;
1717
1818 protected function initialize (InputInterface $ input , OutputInterface $ output )
1919 {
@@ -47,7 +47,7 @@ private function initializeErrorHandling()
4747 app ()->singleton ('log.icl ' , function () {
4848 return new Logger ('ICL ' , $ this ->getLogHandlers ());
4949 });
50- $ this ->icl = app ('log.icl ' );
50+ $ this ->icLogger = app ('log.icl ' );
5151
5252 app ()->singleton (ExceptionHandlerContract::class, ExceptionHandler::class);
5353 app (ExceptionHandlerContract::class);
@@ -70,41 +70,41 @@ protected function getLogPath()
7070
7171 protected function logDebug ($ message , array $ context = [])
7272 {
73- return $ this ->icl ->debug ($ message , $ context );
73+ return $ this ->icLogger ->debug ($ message , $ context );
7474 }
7575
7676 protected function logInfo ($ message , array $ context = [])
7777 {
78- return $ this ->icl ->info ($ message , $ context );
78+ return $ this ->icLogger ->info ($ message , $ context );
7979 }
8080
8181 protected function logNotice ($ message , array $ context = [])
8282 {
83- return $ this ->icl ->notice ($ message , $ context );
83+ return $ this ->icLogger ->notice ($ message , $ context );
8484 }
8585
8686 protected function logWarning ($ message , array $ context = [])
8787 {
88- return $ this ->icl ->warning ($ message , $ context );
88+ return $ this ->icLogger ->warning ($ message , $ context );
8989 }
9090
9191 protected function logError ($ message , array $ context = [])
9292 {
93- return $ this ->icl ->error ($ message , $ context );
93+ return $ this ->icLogger ->error ($ message , $ context );
9494 }
9595
9696 protected function logCritical ($ message , array $ context = [])
9797 {
98- return $ this ->icl ->critical ($ message , $ context );
98+ return $ this ->icLogger ->critical ($ message , $ context );
9999 }
100100
101101 protected function logAlert ($ message , array $ context = [])
102102 {
103- return $ this ->icl ->alert ($ message , $ context );
103+ return $ this ->icLogger ->alert ($ message , $ context );
104104 }
105105
106106 protected function logEmergency ($ message , array $ context = [])
107107 {
108- return $ this ->icl ->emergency ($ message , $ context );
108+ return $ this ->icLogger ->emergency ($ message , $ context );
109109 }
110110}
0 commit comments