- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2018
06:31 AM
09-05-2018
06:31 AM
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
Labels:
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2018
06:49 AM
09-05-2018
06:49 AM
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
Manish Mittal
https://www.manishmittal.com/
https://www.manishmittal.com/
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2018
10:44 PM
09-05-2018
10:44 PM
Re: Var/log test.log
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.