Use PSR-3 compatible method

Changed
`$logger->err('An error occurred');`
to 
`$logger->error('An error occurred');`
because it's deprecated and not PSR-3 compatible