azlux / log2ram

ramlog like for systemd (Put log into a ram folder)
MIT License
2.62k stars 193 forks source link

log of log2ram in the specific directory #204

Open pierrotori opened 1 year ago

pierrotori commented 1 year ago

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

azlux commented 2 weeks ago

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)