Replies: 3 comments
-
Not really. It'd require that we pass a custom implementation of the IOInterface to each plugin that prefixes with the plugin's name.. It's doable but not really worth it IMO as usually you don't have so many plugins and they don't output all that much.. |
Beta Was this translation helpful? Give feedback.
-
Can't you even enter a custom prefix (prepend string)? For example
|
Beta Was this translation helpful? Give feedback.
-
Yes, it is possible to modify the output to include the package name before each line. You can achieve this by modifying the public function activate(Composer $composer, IOInterface $io)
{
$packageName = 'my/plugin-package'; // Replace this with your actual package name
printf(
"Debug: %d\n",
$io->isDebug()
);
$io->debug("$packageName: AAA");
$io->write("$packageName: BBB");
$io->writeError("$packageName: CCC");
} In this modified code:
Make sure to replace |
Beta Was this translation helpful? Give feedback.
-
https://getcomposer.org/doc/articles/plugins.md
Let's summarize like this
We summarize the output produced
But I would like something like this
Is it possible?
Beta Was this translation helpful? Give feedback.
All reactions