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

Ability to apply specific writer #362

Open
sleshJdev opened this issue Jan 20, 2023 · 1 comment
Open

Ability to apply specific writer #362

sleshJdev opened this issue Jan 20, 2023 · 1 comment

Comments

@sleshJdev
Copy link

As a developer I want to have an ability to implicitly or explicitly call particular writer, not all of them. Similar to how logback's name property works. It allows you to assign particular logger(class) to particular appender e.g.

<logger name="com.example.logger.EventLogger">
    <appender-ref ref="EVENTS_ASYNC"/>
</logger>

For instance, we could add a property like writer.class to denote that this writer will be applied only if entry sent by class.

Would it be possible to have something similar in tinylog?

@pmwmedia
Copy link
Member

This is a valid requirement and I could imagine having this feature in tinylog.

In the meantime, you can use a tagged logger in your particular class as a workaround.

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

No branches or pull requests

2 participants