@rezakalfane/dc-cli
Version:
Dynamic Content CLI Tool
8 lines (7 loc) • 377 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const path_1 = require("path");
function getDefaultLogPath(type, action, platform = process.platform) {
return path_1.join(process.env[platform == 'win32' ? 'USERPROFILE' : 'HOME'] || __dirname, '.amplience', `logs/${type}-${action}-<DATE>.log`);
}
exports.getDefaultLogPath = getDefaultLogPath;