mirror of
https://github.com/ivabus/gui
synced 2025-06-08 00:00:27 +03:00
13 lines
306 B
TypeScript
13 lines
306 B
TypeScript
import log from "electron-log";
|
|
|
|
export const setSentryLogging = (sentry: any) => {
|
|
const oldError = log.error;
|
|
|
|
log.error = (...params: any[]) => {
|
|
oldError(params);
|
|
sentry.captureException(params[0].message);
|
|
};
|
|
};
|
|
|
|
// Export the log object to use it throughout the app
|
|
export default log;
|