I made a small extension for Joomla 2.5 and it worked. But the issue is when i trying to make it compatible with Joomla 3, I get errors about JLog::getInstance method is not found. I know that they removed it and it got replaced by JLogLogger but that is also not working.
Can someone please help me and make it work? The code I am using in Joomla 2.5 is
$log = JLog::getInstance();
$log->addEntry(array('comment' => $server['REMOTE_ADDR'] . " is allowed"));
I made a variable called $log because I am using it more. This is just a small code from the extension.