cancel
Showing results for 
Search instead for 
Did you mean: 

Var/log test.log

Var/log test.log

Hi Guys


I have a log in VAR/log called test.log


It is really big, and when i delete it, it start again. How can i locate the log what it is ? 

There is a lot like : 

 

2018-09-05T13:14:13+00:00 INFO (6): Array
(
[ecommerce] => Array
(
[currencyCode] => EUR
[detail] => Array
(
[products] => Array
(
[0] => Array
(
[id] => 224046
[sku] => 61KCY
[name] => XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
[price] => 58.00
[attribute_set_id] => 4
[attribute_set_name] => Default

 

 

 

 

2 REPLIES 2

Re: Var/log test.log

Hello,

Please check your source code, where you define that log file "test.log". If you do not need that log you comment out that line.

I.e.
$writer = new \Zend\Log\Writer\Stream(BP . '/var/log/test.log');

 

Please click on kudos and mark as solution if it will work. Cheers coding Smiley Happy

Manish Mittal
https://www.manishmittal.com/

Re: Var/log test.log

@Nicolaikimbrer

 

It seems that a product collection data is added in the test.log file somewhere in your code.

 

Try to search this text "test.log" in your files and remove that line which is causing this log entry.

 

You can search this text using ssh as given below

 

grep -r -H "test.log" app/
If you find my answer useful, Please click Kudos & Accept as Solution.