Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function getLogger(name: string): Logger {
return LogFactory.getLogger(name, {
namespace: LOGGER_NAMESPACE,
separator: '/',
});
}
function getLogger(name: string): Logger {
return LogFactory.getLogger(name, {
namespace: LOGGER_NAMESPACE,
separator: '/',
});
}
export function getLogger(name: string): logdown.Logger {
const options: LoggerOptions = {
logFilePath: logFile,
namespace: LOGGER_NAMESPACE,
separator: '/',
};
if (ENABLE_LOGGING) {
options.forceEnable = true;
}
return LogFactory.getLogger(name, options);
}
constructor() {
this.logger = LogFactory.getLogger('ElectronWrapperInit', {logFilePath: LOG_FILE});
}
import {logEntries} from '../bin-utils';
import {buildLinuxConfig, buildLinuxWrapper} from './lib/build-linux';
import {buildMacOSConfig, buildMacOSWrapper} from './lib/build-macos';
import {buildWindowsConfig, buildWindowsWrapper} from './lib/build-windows';
import {buildWindowsInstaller, buildWindowsInstallerConfig} from './lib/build-windows-installer';
interface CommanderData {
envFile: string;
manualSign?: boolean;
wireJson: string;
packageJson: string;
}
const toolName = path.basename(__filename).replace('.ts', '');
const logger = LogFactory.getLogger(toolName, {forceEnable: true, namespace: '@wireapp/build-tools'});
const appSource = path.join(__dirname, '../../');
commander
.name(toolName)
.description(
'Build the Wire wrapper for your platform.\n\nValid values for platform are: "windows", "windows-installer", "macos", "linux".',
)
.option('-e, --env-file