[ 
https://issues.apache.org/jira/browse/ZOOKEEPER-850?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12969095#action_12969095
 ] 

Olaf Krische commented on ZOOKEEPER-850:
----------------------------------------

@patrick

there is no such for thing for slf4j. slf4j is just the logger interface, the 
api.

you can configure the final logger by jmx, like log4j, sure. but which logger 
you use, this you can only know in your end project. as long as you are not 
"there", you can not configure anything. it makes no sense, since you just do 
logging in your code. thats why ManagedUtil could go to contrib, its log4j 
specific jmx stuff.

in "tests" you will also chose a final logger, like log4j, "tests" are a final 
project. but this dependency should only be visible in tests. zookeeper itself 
should not deliver with log4j dependencies anymore. 

is it possible in ANT scripts to have a special test scope with test specific 
dependencies?



> Switch from log4j to slf4j
> --------------------------
>
>                 Key: ZOOKEEPER-850
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-850
>             Project: ZooKeeper
>          Issue Type: Improvement
>          Components: java client
>    Affects Versions: 3.3.1
>            Reporter: Olaf Krische
>            Assignee: Olaf Krische
>             Fix For: 3.4.0
>
>         Attachments: ZOOKEEPER-3.3.1-log4j-slf4j-20101031.patch.bz2, 
> ZOOKEEPER-3.4.0-log4j-slf4j-20101102.patch.bz2, ZOOKEEPER-850.patch, 
> ZOOKEEPER-850.patch, ZOOKEEPER-850.patch
>
>
> Hello,
> i would like to see slf4j integrated into the zookeeper instead of relying 
> explicitly on log4j.
> slf4j is an abstract logging framework. There are adapters from slf4j to many 
> logger implementations, one of them is log4j.
> The decision which log engine to use i dont like to make so early.
> This would help me to embed zookeeper in my own applications (which use a 
> different logger implemenation, but slf4j is the basis)
> What do you think?
> (as i can see, those slf4j request flood all other projects on apache as well 
> :-)
> Maybe for 3.4 or 4.0?
> I can offer a patchset, i have experience in such an migration already. :-)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to