46 $logType = $request->getValue(
'type');
47 $message = $request->getValue(
'message');
50 $logger->trace($message);
54 $logger->debug($message);
58 $logger->info($message);
62 $logger->warn($message);
66 $logger->error($message);
70 $logger->fatal($message);
74 $logger->error(
"Unknown log message type: ".$logType);
77 $response->setAction(
'ok');
LoggingController is used to log a message in the backend log.
getLogger()
Get the Logger instance.
getRequest()
Get the Request instance.
Controller is the base class of all controllers.
getResponse()
Get the Response instance.