@pumpkin-plugins/plugin-kit API / logger / taggedLogger
Function: taggedLogger()
taggedLogger(
tag,target):Logger
Defined in: tools/plugin-kit/src/logger.ts:20
Returns a logger that starts every message with tag. Pumpkin prints a plugin's messages as [plugin] <message> without the plugin's name, so a plugin passes this around instead of hostLogger to make every line name it.
Parameters
tag
string
How the lines name the plugin, such as ansi.named.name(PLUGIN_NAME). A space follows it.
target
Where the tagged messages go, usually hostLogger.