Resolve #3196547 "Add a process plugin to log data to watchdog table"
2 unresolved threads
Merge request reports
Activity
added 1 commit
added 1 commit
added 31 commits
-
c1f1e2d1...745200b4 - 29 commits from branch
project:8.x-5.x
- 5862a141 - #3196547 : Add a process plugin to log data to watchdog table
- 4b0368d9 - #3196547 : Add a process plugin to log data to watchdog table
-
c1f1e2d1...745200b4 - 29 commits from branch
- Resolved by Bhanu D
- Resolved by Bhanu D
- Resolved by Bhanu D
added 1 commit
added 1 commit
added 6 commits
-
66c10109 - 1 commit from branch
project:8.x-5.x
- cbcfaea5 - #3196547 : Add a process plugin to log data to watchdog table
- 85341d29 - #3196547 : Add a process plugin to log data to watchdog table
- 5a80c63e - #3196547 : Add Logic to handle non scalar values.
- 5e1e66ad - Renamed Plugin name.
- e54a3786 - #3196547 : Added logic for configuring Logger levels.
Toggle commit list-
66c10109 - 1 commit from branch
- src/Plugin/migrate/process/Logger.php 0 → 100644
46 * Constructs a Logger plugin. 47 * 48 * @param array $configuration 49 * The plugin configuration. 50 * @param string $plugin_id 51 * The plugin ID. 52 * @param mixed $plugin_definition 53 * The plugin definition. 54 * @param \Drupal\Core\Logger\LoggerChannelFactoryInterface $logger 55 * The logger service. 56 */ 57 public function __construct(array $configuration, $plugin_id, $plugin_definition, LoggerChannelFactoryInterface $logger) { 58 parent::__construct($configuration, $plugin_id, $plugin_definition); 59 $this->logger = $logger->get('migrate_plus'); 60 61 $methods = ['info', 'notice', 'error', 'warning']; changed this line in version 9 of the diff
@lucashedding updated plugin to use the constants from
RfcLogLevel
- src/Plugin/migrate/process/Logger.php 0 → 100644
116 ->toArray(), TRUE); 117 } 118 elseif (is_string($value) || is_numeric($value) || is_array($value)) { 119 $export = print_r($value, TRUE); 120 } 121 elseif ($is_object && method_exists($value, '__toString')) { 122 $export = print_r((string) $value, TRUE); 123 } 124 else { 125 $export = NULL; 126 } 127 $class_name = $export !== NULL && $is_object ? $class_name = get_class($value) . ":\n" : ''; 128 $message = $export === NULL ? "Unable to log the value for '{$destination_property}'" : "'{$destination_property}' value is {$class_name}'{$export}'"; 129 130 // Log the value. 131 $this->logger->{$this->loggerMethod}($message); changed this line in version 9 of the diff
@lucashedding can you pls let me know how to get
$context
variable data ? Wont those values be inherited from core logger class ?
added 42 commits
-
e54a3786...1ffc1b6a - 37 commits from branch
project:8.x-5.x
- 2a8f2c97 - #3196547 : Add a process plugin to log data to watchdog table
- feea8c83 - #3196547 : Add a process plugin to log data to watchdog table
- b2a181d2 - #3196547 : Add Logic to handle non scalar values.
- 6865d1c5 - Renamed Plugin name.
- 735909d3 - #3196547 : Added logic for configuring Logger levels.
Toggle commit list-
e54a3786...1ffc1b6a - 37 commits from branch
added 1 commit
Please register or sign in to reply