diff options
Diffstat (limited to 'gui/src/shared')
| -rw-r--r-- | gui/src/shared/ipc-event-channel.ts | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gui/src/shared/ipc-event-channel.ts b/gui/src/shared/ipc-event-channel.ts index 58186a822d..19c11f85ab 100644 --- a/gui/src/shared/ipc-event-channel.ts +++ b/gui/src/shared/ipc-event-channel.ts @@ -26,6 +26,12 @@ import { notifyRenderer, send, } from './ipc-helpers'; +import { LogLevel } from './logging-types'; + +interface ILogEntry { + level: LogLevel; + message: string; +} export interface IRelayListPair { relays: IRelayList; @@ -182,6 +188,9 @@ const ipc = { collectLogs: invoke<string[], string>(), sendReport: invoke<{ email: string; message: string; savedReport: string }, void>(), }, + logging: { + log: send<ILogEntry>(), + }, }; export const IpcMainEventChannel = createIpcMain(ipc); |
