Skip to content

Commit 78b08b4

Browse files
committed
feat(stage-tamagotchi): use injecta's logg logger
1 parent df508fc commit 78b08b4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

apps/stage-tamagotchi/src/main/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { platform } from 'node:process'
66

77
import { electronApp, optimizer } from '@electron-toolkit/utils'
88
import { Format, LogLevel, setGlobalFormat, setGlobalLogLevel, useLogg } from '@guiiai/logg'
9-
import { injecta } from '@proj-airi/injecta'
9+
import { createLoggLogger, injecta } from '@proj-airi/injecta'
1010
import { app, Menu, nativeImage, Tray } from 'electron'
1111
import { noop, once } from 'es-toolkit'
1212
import { isMacOS } from 'std-env'
@@ -89,6 +89,7 @@ async function setupProjectAIRIServerRuntime() {
8989
app.whenReady().then(async () => {
9090
await setupProjectAIRIServerRuntime()
9191

92+
injecta.setLogger(createLoggLogger())
9293
injecta.provide('mainWindow', async () => await setupMainWindow())
9394
injecta.provide<{ mainWindow: BrowserWindow }>('tray', { dependsOn: { mainWindow: 'mainWindow' }, build: async ({ dependsOn }) => setupTray({ mainWindow: dependsOn.mainWindow }) })
9495
injecta.invoke({ dependsOn: { mainWindow: 'mainWindow', tray: 'tray' }, callback: noop })

0 commit comments

Comments
 (0)