[MM-51873] Create central logging module for adding prefixes to differentiate logs between modules (#2652)
* Create central logging module for adding prefixes to differentiate logs between modules * Turn logger into class * Merge'd * Rework to use class more intelligently * Fix modalView * Fix webContentEvents * Update src/main/app/intercom.ts Co-authored-by: Daniel Espino García <larkox@gmail.com> * Shorten prefixes on object creation --------- Co-authored-by: Daniel Espino García <larkox@gmail.com>
This commit is contained in:
@@ -6,16 +6,18 @@
|
||||
import fs from 'fs';
|
||||
|
||||
import {dialog, shell} from 'electron';
|
||||
import log from 'electron-log';
|
||||
|
||||
import {localizeMessage} from 'main/i18nManager';
|
||||
|
||||
import buildConfig from 'common/config/buildConfig';
|
||||
import {Logger} from 'common/log';
|
||||
import * as Validator from 'common/Validator';
|
||||
|
||||
import MainWindow from './windows/mainWindow';
|
||||
import {allowedProtocolFile} from './constants';
|
||||
|
||||
const log = new Logger('AllowProtocolDialog');
|
||||
|
||||
export class AllowProtocolDialog {
|
||||
allowedProtocols: string[];
|
||||
|
||||
|
Reference in New Issue
Block a user