1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

add or remote

Signed-off-by: Sebastian Malton <smalton@mirantis.com>
This commit is contained in:
Sebastian Malton 2020-08-31 15:42:49 -04:00
parent b578ce895e
commit 8f68afec2c

View File

@ -1,4 +1,4 @@
import { app } from "electron"; import { app, remote } from "electron";
import winston from "winston" import winston from "winston"
import { isDebugging } from "../common/vars"; import { isDebugging } from "../common/vars";
@ -11,7 +11,7 @@ const fileOptions: winston.transports.FileTransportOptions = {
handleExceptions: false, handleExceptions: false,
level: isDebugging ? "debug" : "info", level: isDebugging ? "debug" : "info",
filename: "lens.log", filename: "lens.log",
dirname: app.getPath("logs"), dirname: (app || remote.app).getPath("logs"),
maxsize: 16 * 1024, maxsize: 16 * 1024,
maxFiles: 16, maxFiles: 16,
tailable: true, tailable: true,