You are here

public function ChosenLibCommands::drush_log in Chosen 8.2

Same name and namespace in other branches
  1. 3.0.x modules/chosen_lib/src/Commands/ChosenLibCommands.php \Drupal\chosen_lib\Commands\ChosenLibCommands::drush_log()

Logs with an arbitrary level.

Parameters

string $message: The log message.

mixed $type: The log type.

1 call to ChosenLibCommands::drush_log()
ChosenLibCommands::plugin in modules/chosen_lib/src/Commands/ChosenLibCommands.php
Download and install the Chosen plugin.

File

modules/chosen_lib/src/Commands/ChosenLibCommands.php, line 98

Class

ChosenLibCommands
A Drush commandfile.

Namespace

Drupal\chosen_lib\Commands

Code

public function drush_log($message, $type = LogLevel::INFO) {
  $this
    ->logger()
    ->log($type, $message);
}