haijeploeg / excludarr

Excludarr manages your libraries in Radarr/Sonarr. It keeps track of your library and checks if your movies and series are also available on a configured streaming provider. It can exclude the movies and series that are available on a configured streaming provider. But it can also re-add movies and series if they are not streaming anymore.
MIT License
194 stars 13 forks source link

General question: Log output #69

Open 2fst4u opened 1 year ago

2fst4u commented 1 year ago

Just a quick general question because I can't see it documented. Are logs outputted to a file in docker and if so, where? In my setup I would like to mount this location somewhere in particular so I can run unattended but in a sort of dry-run mode and check what excludarr intends to delete before turning on deletion.

I run on kubernetes not actually docker so my setup is a bit weird.

faulander commented 1 year ago

according to this code, logs are send to stdout: logger.add( sys.stdout, colorize=True, format="[{time:YYYY-MM-DD HH:mm:ss}] - <level>{message}</level>", level=log_level, )

2fst4u commented 1 year ago

Hmm I guess there could be a way to pipe this to a file but if it natively made a file that would be ideal.

faulander commented 1 year ago

just add another sink to the logger: logger.add("excludarr.log", colorize=True, format="[{time:YYYY-MM-DD HH:mm:ss}] - <level>{message}</level>", level=log_level, ) More Info here: https://loguru.readthedocs.io/en/stable/overview.html#easier-file-logging-with-rotation-retention-compression

2fst4u commented 1 year ago

That wouldn't persist in docker.

haijeploeg commented 1 year ago

Hi, sorry for the late reply, I have taken the development of excludarr on a pause for a while. I am aware of several issues in excludarr and I tend to fix it by creating a Web UI. Where users can control excludarr within an web interface. All the present features will be in there including some new features! I have started the development this week, but it will take some time, I hope to release it before christmas :) PS. I am replying with this message on every issue to make everyone aware.

I will intergrate logging in the UI.

2fst4u commented 1 year ago

Thank you. Will the docker version still exist?

haijeploeg commented 1 year ago

Yes the docker version will still exists.

2fst4u commented 6 months ago

Wow GitHub spam is a new one for me.