How to use the @wireapp/commons.LogFactory.getLogger function in @wireapp/commons

To help you get started, we’ve selected a few @wireapp/commons examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github wireapp / wire-webapp / src / script / util / Logger.ts View on Github external
function getLogger(name: string): Logger {
  return LogFactory.getLogger(name, {
    namespace: LOGGER_NAMESPACE,
    separator: '/',
  });
}
github wireapp / wire-webapp / src / script / auth / LogProvider.ts View on Github external
function getLogger(name: string): Logger {
  return LogFactory.getLogger(name, {
    namespace: LOGGER_NAMESPACE,
    separator: '/',
  });
}
github wireapp / wire-desktop / electron / src / logging / getLogger.ts View on Github external
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);
}
github wireapp / wire-desktop / electron / src / main.ts View on Github external
constructor() {
    this.logger = LogFactory.getLogger('ElectronWrapperInit', {logFilePath: LOG_FILE});
  }
github wireapp / wire-desktop / bin / build-tools / build-cli.ts View on Github external
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