src/base/Application.php
public function log(string $level, $message, $category = 'application'): void
    {
        $this->getLogger()->log($level, $message, ['category' => $category]);
    }
public function log(string $level, $message, $category = 'application'): void
    {
        $this->getLogger()->log($level, $message, ['category' => $category]);
    }
public function log ( string $ level , $ message , $ category = 'application' ) : void { $ this -> getLogger ( ) -> log ( $ level , $ message , [ 'category' => $ category ] ) ; }
Logs given message through `logger` service.

@param string $level log level.
@param mixed $message the message to be logged. This can be a simple string or a more
complex data structure, such as array.
@param string $category the category of the message.
@since 3.0.0
Logs given message through logger service .