[
https://jira.jboss.org/jira/browse/JGRP-1106?page=com.atlassian.jira.plug...
]
Shay Banon commented on JGRP-1106:
----------------------------------
JGroups already has an abstraction on top of a logging framework, which supports either
jdk logging or log4j logging. For one, this means that other logging frameworks (well,
actually, just slf4j with logback jumps to mind) won't be able to hook into it.
Another point, which is more relevant to my case, is that I do some logic when I create
loggers (I use log4j). Basically sometimes providing my own proxy loggers. It would be
great for frameworks/libraries type products (like jgroups) to be able to hook into how
jgroups uses logging and be able to provide my own loggers.
Another reason is to be able to control the "category" of the loggers created
(still maintain the jgroups logic for example, but removing org.jgroups.... and replacing
it with com.something.jgroups....).
I don't think a lot of "end users" will use this, but its a nice extension
point that already fits into the abstraction jgroups has on top of logging.
Hope it make sense,
Shay
Custom LogFactory instead of the built in log4j / jdk logging
-------------------------------------------------------------
Key: JGRP-1106
URL:
https://jira.jboss.org/jira/browse/JGRP-1106
Project: JGroups
Issue Type: Feature Request
Reporter: Shay Banon
Assignee: Bela Ban
Fix For: 2.8
Attachments: CustomLogFactory.java, LogFactory.java
Hi,
I would love to be able to plug into jboss my own construction of loggers and not rely
on the built in ones. I do some special things when constructing loggers (I am using slf4j
ontop of log4j, but I modify the loggers a bit). Also, I would love to change categories
and such on the fly.
For that, I am attaching two files. The first is an interface called CustomLogFactory
which needs to be implemented to provide the custom implementation. The second is a
modified LogFactory in order to support that. I apologize for not attaching a patch, I
can't seem to connect to CVS, and I am hoping to get this into 2.8 if possible ;), so
I want to provide this as fast as possible.
If this can make it into 2.8 it would be great!
Cheers,
Shay
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira