Encoder definition not shareable

Hello Logback community, Please correct me if wrong, but it doesn't seem possible to share encoder definition in multiple appenders. I guess there is a reason why encoder instances cannot be shared, but wouldn't it be possible to support at least sharing definition? Now I have to resort to copy-pasting same encoder definition multiple times which is suboptimal, not DRY. Kind regards, Stevo Slavic.

Hi Stevo, Indeed Joran (logback's) configuration parser does not support definition sharing. Could you please create a jira issue asking for this feature? -- Ceki On 3/4/2016 15:48, Stevo Slavić wrote:
Hello Logback community,
Please correct me if wrong, but it doesn't seem possible to share encoder definition in multiple appenders.
I guess there is a reason why encoder instances cannot be shared, but wouldn't it be possible to support at least sharing definition?
Now I have to resort to copy-pasting same encoder definition multiple times which is suboptimal, not DRY.
Kind regards, Stevo Slavic.
_______________________________________________ logback-user mailing list logback-user@qos.ch http://mailman.qos.ch/mailman/listinfo/logback-user

Created feature request http://jira.qos.ch/browse/LOGBACK-1150 On Fri, Mar 4, 2016 at 5:55 PM, Ceki Gulcu <ceki@qos.ch> wrote:
Hi Stevo,
Indeed Joran (logback's) configuration parser does not support definition sharing. Could you please create a jira issue asking for this feature?
-- Ceki
On 3/4/2016 15:48, Stevo Slavić wrote:
Hello Logback community,
Please correct me if wrong, but it doesn't seem possible to share encoder definition in multiple appenders.
I guess there is a reason why encoder instances cannot be shared, but wouldn't it be possible to support at least sharing definition?
Now I have to resort to copy-pasting same encoder definition multiple times which is suboptimal, not DRY.
Kind regards, Stevo Slavic.
_______________________________________________ logback-user mailing list logback-user@qos.ch http://mailman.qos.ch/mailman/listinfo/logback-user
_______________________________________________ logback-user mailing list logback-user@qos.ch http://mailman.qos.ch/mailman/listinfo/logback-user
participants (2)
-
Ceki Gulcu
-
Stevo Slavić