Missed Concole.log entry

This commit is contained in:
UKDTOM 2020-09-19 00:21:28 +02:00
parent edf8966d31
commit aa17d5e998
10 changed files with 10 additions and 1 deletions

View file

@ -1,6 +1,7 @@
'use strict'
import { app, protocol, BrowserWindow, Menu} from 'electron'
const log = require('electron-log');
console.log = log.log;
var appName = app.getName();

View file

@ -49,6 +49,7 @@
<script>
const log = require("electron-log");
console.log = log.log;
import {wtutils, wtconfig, dialog} from '../wtutils';
import i18n from '../i18n';

View file

@ -17,6 +17,7 @@
<script>
const log = require('electron-log');
console.log = log.log;
import i18n from '../i18n';
import {wtutils, wtconfig} from '../wtutils'
export default {

View file

@ -68,6 +68,7 @@ import i18n from '../i18n';
import { shell } from 'electron';
import { wtconfig} from '../wtutils'
const log = require('electron-log');
console.log = log.log;
export default {
name: 'locale-changer',

View file

@ -104,6 +104,7 @@
<script>
import store from '../store'
const log = require('electron-log');
console.log = log.log;
// User Config
import {wtconfig} from '../wtutils';

View file

@ -87,6 +87,7 @@
import store from '../../store';
import { ptv } from '../modules/General/plextv';
const log = require('electron-log');
console.log = log.log;
export default {
data(){

View file

@ -8,6 +8,7 @@
<script>
const log = require('electron-log');
console.log = log.log;
import '@fortawesome/fontawesome-free/css/all.css'
import etIcon from '@/assets/ET-256.png';
import i18n from '../../i18n'

View file

@ -1,6 +1,7 @@
/* eslint-disable no-unreachable */
var def = JSON.parse(JSON.stringify(require('./definitions.json')));
const log = require('electron-log');
console.log = log.log;
const defpostURI = '?checkFiles=1&includeRelated=0&includeExtras=1&includeBandwidths=1&includeChapters=1'

View file

@ -25,6 +25,7 @@ Vue.use(BootstrapVueIcons)
// Logging start
// Remember to define log in all components where its used, as in below
const log = require('electron-log');
console.log = log.log;
// Default file log level is info
log.transports.file.level = wtconfig.get('Log.fileLevel', 'info');
// Default console level is Silly, since used by us
@ -32,7 +33,6 @@ log.transports.console.level = wtconfig.get('Log.consoleLevel', 'silly');
log.transports.file.fileName = wtutils.AppName;
// Set logfile to 10Mb
log.transports.file.maxSize = wtconfig.get('Log.maxSize', 1048576);
console.log = log.log;
log.info('*********************************')
log.info('Starting ' + wtutils.AppName + ' Version:' + wtutils.AppVersion);
// Logging ended

View file

@ -4,6 +4,7 @@ that we use in our solution.
*/
const log = require('electron-log');
console.log = log.log;
const electron = require('electron');
// User Config
const Store = require('electron-store');