Commit ab7e0284 authored by nanahira's avatar nanahira

use class name for default logger name

parent c0c2b4a2
Pipeline #6885 passed with stages
in 33 seconds
......@@ -224,5 +224,9 @@ export const InjectConfig = (raw = false) =>
InjectSystem((obj) => (raw ? obj.__rawConfig : obj.__config));
export const InjectLogger = (name?: string) =>
InjectSystem((obj) =>
obj.__ctx.logger(name || obj.__pluginOptions?.name || 'default'),
obj.__ctx.logger(
name ||
Object.getPrototypeOf(Object.getPrototypeOf(obj))?.constructor?.name ||
'default',
),
);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment