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

General question: Log output #69

Open
2fst4u opened this issue Aug 14, 2022 · 8 comments
Open

General question: Log output #69

2fst4u opened this issue Aug 14, 2022 · 8 comments

Comments

@2fst4u
Copy link

2fst4u commented Aug 14, 2022

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
Copy link

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
Copy link
Author

2fst4u commented Oct 14, 2022

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
Copy link

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
Copy link
Author

2fst4u commented Oct 14, 2022

That wouldn't persist in docker.

@haijeploeg
Copy link
Owner

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
Copy link
Author

2fst4u commented Oct 23, 2022

Thank you. Will the docker version still exist?

@haijeploeg
Copy link
Owner

Yes the docker version will still exists.

@2fst4u
Copy link
Author

2fst4u commented Dec 30, 2023

Wow GitHub spam is a new one for me.

Repository owner deleted a comment from ThuretGbenougan Mar 4, 2024
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

4 participants
@haijeploeg @2fst4u @faulander and others