By Artem Lebsak on Wednesday, 26 January 2022
Posted in Payment Gateways
Replies 3
Likes 0
Views 1K
Votes 0
Hi,

I am using a standard way of logging errors,

PPLog::log(
PPLogger::LEVEL_ERROR, Text::_('PLG_PAYPLANS_MYGATEWAY_ERROR_SOME_MESSAGE'), $payment, $data, 'PayplansPaymentFormatter'
);


But I do not see them in audit logs. Am I am missing something?
I am on Joomla 4.

Best regards,
Artem
I think you have to troubleshoot this only can know what is the reason it doesn't log into the audit log.

You can troubleshoot this from the following files:

When you call this method PPLog::log(xxx) then it will call this file
JoomlaFolder/administrator/components/com_payplans/includes/log/log.php (log function) then only call this
JoomlaFolder/administrator/components/com_payplans/includes/logger/logger.php (log function, screenshot: https://monosnap.com/file/4FGq9EO4akOiitgE3oKu8Xg1qoG2kL )
·
Thursday, 27 January 2022 15:22
·
0 Likes
·
0 Votes
·
0 Comments
·
Ok I will try
·
Monday, 31 January 2022 05:10
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Artem,

Ok, Keep us updated if you will have any issues.
·
Monday, 31 January 2022 10:40
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post