-
Notifications
You must be signed in to change notification settings - Fork 137
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
Disable logging to file in Settings #1705
Comments
I think supporting all kinds of logging services might be to much effort. I would be better to provide some kind of interface that easily allows to extend Vorta with different log consumers. Then you could implement a custom consumer that passes the logs to journald.
Is there no way to include arbitrary log files in journald? |
If you run Vorta via Systemd, the logs (console output) will be in Journald. That's totally doable and you can monitor or manage the process. Very common with e.g. Borgmatic. You can't "import" random files. |
Yes, but it will additionally also write into
I know
While it would've been great to have a standardized interface, that is not Vorta's task to solve. The scope of this issue is to support only the most standardized one available - However, there's an option to use a third-party library for the task (that supported as many daemons as possible). I think I saw something like that in the past, but it seems I haven't bookmarked it.
That's two feature requests ahead, but of course it would also be good to have that feature.
The too-lightly-emphasized point is that I don't want arbitrary hardcoded log files just lying around And also: I'm running pleothra of software and basically everything else already behaves and logs with |
As a multi-platform app we use the lowest common denominator, which are simple files. I don't see us adding different logging frameworks, since it's mostly used for debugging right now. But there could be a setting to disable logging to files (default: enabled). Then you can capture them via Systemd only, if you really want. |
Ok, fair enough. Disabling log files is still a solution. However:
|
Yes, console out put and log files are the same from the same Python logging source. If you come up with a suitable .service file, we can add it to the docs under the Linux install instructions. |
Hi @m3nu, does this look good? |
The inverted-logic approach is needlessly confusing. Please make it a simple "Enable logging to file" and ticked/checked by default. |
@AdwaitSalankar are you working on this? |
@shivansh02 Yes, I am close to opening a PR. |
The problem
Vorta currently logs to a dedicated file. Sometimes that might not be the preferred solution.
Requested Solution
An option to switch logging output to user''s journald.
Alternatives
None that I know of.
The text was updated successfully, but these errors were encountered: