Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to Custom the maxFileSzie of log #405

Open
61go opened this issue Feb 28, 2024 · 3 comments
Open

How to Custom the maxFileSzie of log #405

61go opened this issue Feb 28, 2024 · 3 comments

Comments

@61go
Copy link

61go commented Feb 28, 2024

import log from 'electron-log/main'; log.transports.file.maxSize = 800 * 1024 * 1024;// 100 MB log.initialize();

i do it in eletron's prload.ts
but is doesn't work.

@megahertz
Copy link
Owner

megahertz commented Feb 28, 2024

It can be run in the main process only

@61go
Copy link
Author

61go commented Feb 29, 2024 via email

@megahertz
Copy link
Owner

No, I don't think it makes sense to allow configuring transports in a renderer process

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants