How to use the electron-log/lib/transports/file/findLogPath function in electron-log

To help you get started, we’ve selected a few electron-log 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 dsheiko / puppetry / src / service / io.js View on Github external
export function getAppInstallPath() {
  if ( "appInstallPath" in cache ) {
    return cache[ "appInstallPath" ];
  }
  const appInstallPath = dirname( findLogPath( remote.app.name ) );
  cache[ "appInstallPath" ] = appInstallPath;
  return appInstallPath;
}