Add log viewer

This commit is contained in:
Tim
2019-05-29 17:44:49 +02:00
parent 49b9d139ec
commit 858f71e945
4 changed files with 46 additions and 2 deletions

View File

@ -4,7 +4,6 @@ namespace App\Ardent\LoggerBundle\Service;
use App\Ardent\LoggerBundle\Entity\LogEntry;
use Doctrine\ORM\EntityManagerInterface;
use phpDocumentor\Reflection\Types\This;
use Psr\Log\InvalidArgumentException;
class LoggerService
@ -168,7 +167,7 @@ class LoggerService
return $context;
}
public function getLatest($level = self::DEBUG, $amount = 1)
public function getLatest($amount = 1, $level = self::DEBUG)
{
$qb = $this->em->createQueryBuilder();