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:
parent
b578ce895e
commit
8f68afec2c
@ -1,4 +1,4 @@
|
||||
import { app } from "electron";
|
||||
import { app, remote } from "electron";
|
||||
import winston from "winston"
|
||||
import { isDebugging } from "../common/vars";
|
||||
|
||||
@ -11,7 +11,7 @@ const fileOptions: winston.transports.FileTransportOptions = {
|
||||
handleExceptions: false,
|
||||
level: isDebugging ? "debug" : "info",
|
||||
filename: "lens.log",
|
||||
dirname: app.getPath("logs"),
|
||||
dirname: (app || remote.app).getPath("logs"),
|
||||
maxsize: 16 * 1024,
|
||||
maxFiles: 16,
|
||||
tailable: true,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user