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

log of log2ram in the specific directory #204

Open
pierrotori opened this issue Feb 20, 2023 · 1 comment
Open

log of log2ram in the specific directory #204

pierrotori opened this issue Feb 20, 2023 · 1 comment

Comments

@pierrotori
Copy link

pierrotori commented Feb 20, 2023

Hi
i use the log2ram with docker in the directory /var/lib/docker/containers and the system create a file log log2ram.log in the directory.
Is it possible to change the path of the log ?

in my config file i have : PATH_DISK="/var/log;/var/lib/docker/containers"
and in the log i have this error
raspberrypi dockerd[586]: time="2023-02-20T10:40:34.987013220+01:00" level=error msg="failed to load container" container=log2ram.log error="lstat /var/lib/docker/containers/log2ram.log/config.v2.json: not a directory"
Regards

@pierrotori pierrotori changed the title log if log2ram log of log2ram in the specific directory Feb 20, 2023
@azlux
Copy link
Owner

azlux commented Sep 19, 2024

Currently the log of log2ram is hardcoded next to the current folder to copy : https://github.com/azlux/log2ram/blob/master/log2ram#L128
I didn't expect having an issue in this place since it's already a folder for logs.
Can you explain the issue here (srry, late from 1 year)

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