import path from 'path';
import getRuntimeFolderPath from './utils/getRuntimeFolderPath';
import { launcherConfig } from './utils/launcherConfig';

export const APP_NAME = 'Daedalus';
export const runtimeFolderPath = getRuntimeFolderPath(process.platform, process.env, APP_NAME);
export const appLogsFolderPath = launcherConfig.logsPrefix || path.join(runtimeFolderPath, 'Logs');
export const pubLogsFolderPath = path.join(appLogsFolderPath, 'pub');

export const ALLOWED_LOGS = [
  'Daedalus.log',
];
export const ALLOWED_NODE_LOGS = new RegExp(/(node.pub-)(\d{14}$)/);
export const ALLOWED_LAUNCHER_LOGS = new RegExp(/(launcher-)(\d{14}$)/);
export const MAX_NODE_LOGS_ALLOWED = 3;
export const MAX_LAUNCHER_LOGS_ALLOWED = 3;

@@ -546,19 +546,20 @@
 (/(node.
-pub
+json
 -)(%5Cd%7B14

correct regex - node log name pattern