Acode icon indicating copy to clipboard operation
Acode copied to clipboard

console logs from plugins are mixed and hard to debug

Open Victozee26 opened this issue 10 months ago • 3 comments

Check for existing issues

  • [x] Completed

Describe the feature

the system console with erudu plugin shows logs from the core app and all plugins together

there is no label to show which plugin or system part created a log, warning, or error

when many plugins are installed, it becomes very hard to debug plugins or track problems

add something like acode.console.log() for plugins templates or something

logger can automatically add a short plugin name before the log, so we know where it comes from

This makes debugging easier for plugin developers and users

If applicable, add mockups / screenshots to help present your vision of the feature

acode.console.log("plugin loaded");

output

[ Plugin name ] plugin loaded

Victozee26 avatar Jan 13 '26 11:01 Victozee26

also for logging errors and warning 🙏

Victozee26 avatar Jan 13 '26 11:01 Victozee26

You can just use a console log wrapper like:

acode.console = {
  log: function (...args) {
    console.log("[MyPlugin]", ...args);
  }
};

// then you can do
acode.console.log("hello world");

RohitKushvaha01 avatar Feb 25 '26 07:02 RohitKushvaha01

@RohitKushvaha01 i wanted to see maybe if you guys can make this mandatory for all plugin devs

not for the devs themselves but for users so users can see which plugin logged an error or debug and know who to issue to thanks 🙏

Victozee26 avatar Feb 25 '26 07:02 Victozee26