mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Extract feature package for logger
Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>
This commit is contained in:
1 parent
1c8559013b
commit
439599b800
309 files changed
+477
-356
No files matched your search
@@ -11,6 +11,7 @@ import { registerFeature } from "@k8slens/feature-core";
|
||||
import { applicationFeature, startApplicationInjectionToken } from '@k8slens/application'
|
||||
import { applicationFeatureForElectronMain } from '@k8slens/application-for-electron-main'
|
||||
import { messagingFeatureForMain } from "@k8slens/messaging-for-main";
|
||||
import { loggingFeature } from "@k8slens/logging";
|
||||
|
||||
const environment = "main";
|
||||
|
||||
@@ -23,7 +24,13 @@ registerMobX(di);
|
||||
runInAction(() => {
|
||||
registerLensCore(di, environment);
|
||||
|
||||
registerFeature(di, applicationFeature, applicationFeatureForElectronMain, messagingFeatureForMain);
|
||||
registerFeature(
|
||||
di,
|
||||
applicationFeature,
|
||||
applicationFeatureForElectronMain,
|
||||
messagingFeatureForMain,
|
||||
loggingFeature
|
||||
);
|
||||
|
||||
try {
|
||||
autoRegister({
|
||||
|
||||
@@ -20,6 +20,7 @@ import { registerInjectableReact } from "@ogre-tools/injectable-react";
|
||||
import { messagingFeatureForRenderer } from "@k8slens/messaging-for-renderer";
|
||||
import { keyboardShortcutsFeature } from "@k8slens/keyboard-shortcuts";
|
||||
import { reactApplicationFeature } from "@k8slens/react-application";
|
||||
import { loggingFeature } from "@k8slens/logging";
|
||||
|
||||
const environment = "renderer";
|
||||
|
||||
@@ -38,7 +39,8 @@ runInAction(() => {
|
||||
messagingFeatureForRenderer,
|
||||
keyboardShortcutsFeature,
|
||||
reactApplicationFeature,
|
||||
metricsFeature
|
||||
metricsFeature,
|
||||
loggingFeature,
|
||||
);
|
||||
|
||||
autoRegister({
|
||||
|
||||
Reference in new issue
Block a user