File tree Expand file tree Collapse file tree 5 files changed +20
-18
lines changed 
Controller/Adminhtml/Reports Expand file tree Collapse file tree 5 files changed +20
-18
lines changed Original file line number Diff line number Diff line change 99namespace  GhostUnicorns \WebapiLogs \Controller \Adminhtml \Reports ;
1010
1111use  Exception ;
12- use  GhostUnicorns \ WebapiLogs \ Model \ Log \Logger ;
12+ use  Psr \ Log \LoggerInterface   as   Logger ;
1313use  GhostUnicorns \WebapiLogs \Model \ResourceModel \Entity \LogCollectionFactory ;
1414use  Magento \Backend \App \Action ;
1515use  Magento \Backend \App \Action \Context ;
Original file line number Diff line number Diff line change 1010
1111use  DateTime ;
1212use  Exception ;
13- use  GhostUnicorns \ WebapiLogs \ Model \ Log \Logger ;
13+ use  Psr \ Log \LoggerInterface   as   Logger ;
1414use  GhostUnicorns \WebapiLogs \Model \ResourceModel \Entity \LogCollectionFactory ;
1515use  GhostUnicorns \WebapiLogs \Model \ResourceModel \LogResourceModel ;
1616
  Load Diff This file was deleted. 
Original file line number Diff line number Diff line change 99namespace  GhostUnicorns \WebapiLogs \Model ;
1010
1111use  Exception ;
12- use  GhostUnicorns \ WebapiLogs \ Model \ Log \Logger ;
12+ use  Psr \ Log \LoggerInterface   as   Logger ;
1313use  GhostUnicorns \WebapiLogs \Model \ResourceModel \LogResourceModel ;
1414
1515class  LogHandle
Original file line number Diff line number Diff line change 77<config  xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" 
88        xsi : noNamespaceSchemaLocation =" urn:magento:framework:ObjectManager/etc/config.xsd"  >
99    <!--  Log start --> 
10-     <type  name =" GhostUnicorns\WebapiLogs\Model\Log\Logger"  >
10+     <virtualType  name =" GhostUnicorns\WebapiLogs\Model\Log\Logger"   type = " Magento\Framework\Logger\Monolog "  >
1111        <arguments >
1212            <argument  name =" name"   xsi : type =" string"  >GhostUnicorns::WebapiLogs</argument >
1313            <argument  name =" handlers"   xsi : type =" array"  >
1616                </item >
1717            </argument >
1818        </arguments >
19-     </type >
19+     </virtualType >
2020    <virtualType  name =" GhostUnicorns\WebapiLogs\Log\Handler"   type =" Magento\Framework\Logger\Handler\Base"  >
2121        <arguments >
2222            <argument  name =" fileName"   xsi : type =" string"  >/var/log/webapi_logs.log</argument >
2323        </arguments >
2424    </virtualType >
25+     <type  name =" GhostUnicorns\WebapiLogs\Model\LogHandle"  >
26+         <arguments >
27+             <argument  name =" logger"   xsi : type =" object"  >GhostUnicorns\WebapiLogs\Model\Log\Logger</argument >
28+         </arguments >
29+     </type >
30+     <type  name =" GhostUnicorns\WebapiLogs\Model\Clean"  >
31+         <arguments >
32+             <argument  name =" logger"   xsi : type =" object"  >GhostUnicorns\WebapiLogs\Model\Log\Logger</argument >
33+         </arguments >
34+     </type >
35+     <type  name =" GhostUnicorns\WebapiLogs\Controller\Adminhtml\Reports\Delete"  >
36+         <arguments >
37+             <argument  name =" logger"   xsi : type =" object"  >GhostUnicorns\WebapiLogs\Model\Log\Logger</argument >
38+         </arguments >
39+     </type >
2540    <!--  Log end --> 
2641
2742    <!--  Command start --> 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments