Logfile in user dir
This commit is contained in:
parent
0f4b82807e
commit
60881eaf3e
@ -223,10 +223,8 @@
|
||||
return { ok: true, activeName: '0', scanStoreLogging: false }
|
||||
},
|
||||
mounted () {
|
||||
console.debug('Mount')
|
||||
this.$store.watch(
|
||||
function (state) {
|
||||
console.debug('Mount ' + JSON.stringify(state))
|
||||
return state.Settings.settings
|
||||
},
|
||||
() => { this.loggingChanged() }
|
||||
|
@ -14,9 +14,12 @@ d.getMilliseconds() + '.log';
|
||||
var logStream = null;
|
||||
|
||||
var loggerInit = function (logging) {
|
||||
debugger;
|
||||
if (logging) {
|
||||
try {
|
||||
logStream = require('fs').createWriteStream( fName, {autoClose: true});
|
||||
const homedir = require('os').homedir();
|
||||
const logFileName = require('path').join(homedir, fName);
|
||||
logStream = require('fs').createWriteStream( logFileName, {autoClose: true});
|
||||
} catch (error) {
|
||||
console.error('Logging not possible ' + error);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user