Skip to content

Commit

Permalink
finux linux logging path
Browse files Browse the repository at this point in the history
  • Loading branch information
khbsd committed Jul 10, 2024
1 parent cd2cfa6 commit b11ea77
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions support_files/log_utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ if (isMainThread) {
const vscode = require('vscode');
const config = vscode.workspace.getConfiguration('bg3ModHelper');
lslibPath = config.get('lslibPath');
logPath = path.normalize(lslibPath + "\\logs\\bg3mh_log_" + LOGDATE() + ".log");
let logName = ("bg3mh_log_" + LOGDATE() + ".log").concat();
logPath = path.join(lslibPath, "logs", path.sep, logName);

CREATE_LOGGER = () => {
var log4js = require('log4js');
Expand Down Expand Up @@ -89,7 +90,8 @@ if (isMainThread) {
}
} else {
lslibPath = workerData.workerConfig.lslibPath;
logPath = path.normalize(lslibPath + "\\logs\\bg3mh_log_" + LOGDATE() + "_worker_thread.log");
let logName = ("bg3mh_log_" + LOGDATE() + ".log").concat();
logPath = path.join(lslibPath, "logs", logName);

CREATE_LOGGER = () => {
var log4js = require('log4js');
Expand Down

0 comments on commit b11ea77

Please sign in to comment.