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

DeduplicationHandler in a read only container #1893

Closed
ervinBLU opened this issue Jun 6, 2024 · 4 comments
Closed

DeduplicationHandler in a read only container #1893

ervinBLU opened this issue Jun 6, 2024 · 4 comments
Labels

Comments

@ervinBLU
Copy link

ervinBLU commented Jun 6, 2024

Monolog version 3

Is there a way for DeduplicationHandler to save into database, redis for example, instead of file system? I'm using a read only container and it tries to write on file system, I can't find anything to configure it to use something else instead of file system, Thanks :)

@ervinBLU ervinBLU changed the title DeduplicationHandler on a read only container DeduplicationHandler in a read only container Jun 6, 2024
@javaDeveloperKid
Copy link
Contributor

Looking at the source code it's not possible.

@Seldaek
Copy link
Owner

Seldaek commented Jun 28, 2024

Nope sorry this is really a hackish handler built to avoid spamming mailboxes when doing mail handler stuff.. But in general IMO it is best to log everything and handle filtering on the log viewer.

@Seldaek Seldaek closed this as completed Jun 28, 2024
@Seldaek
Copy link
Owner

Seldaek commented Jun 28, 2024

That said, the DeduplicationHandler accepts a file path, so using stream wrappers you might be able to build a redis backed store for it 🤷🏻 I don't know if it's worth the hassle though.

@ervinBLU
Copy link
Author

Thank you for answering :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants