Skip to content

Commit 67bcf27

Browse files
committed
Provide key for inject()
1 parent cedcc0b commit 67bcf27

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: src/vue3-logger.ts

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ class VueLogger implements ILogger {
1212

1313
if (this.isValidOptions(options, this.logLevels)) {
1414
Vue.$log = this.initLoggerInstance(options, this.logLevels);
15+
Vue.provide('vuejs3-logger', Vue.$log);
1516
Vue.config.globalProperties.$log = Vue.$log;
1617
} else {
1718
throw new Error(this.errorMessage);

0 commit comments

Comments
 (0)