It is. You create that package structure in your app to access it.

jvz

On 2013-01-01, at 8:48 PM, Stephen Connolly <[email protected]> 
wrote:

> If I read that right it is accessing a package local method...
> 
> That won't work with a security manager in play (not that we have one)
> [unless we repackage the api jar] but just wondering if that may affect
> embedded use?
> 
> On Tuesday, 1 January 2013, Jason van Zyl wrote:
> 
>> 
>> On Jan 1, 2013, at 6:15 PM, Hervé BOUTEMY 
>> <[email protected]<javascript:;>>
>> wrote:
>> 
>>> Le lundi 24 décembre 2012 09:12:07 Jason van Zyl a écrit :
>>>> If we want to put aside the debate, Ceki has figured out a way for use
>> SLF4J
>>>> Simple by resetting the streams and logging level. Which I can try if we
>>>> want to go down that path. I didn't have to do any work in SLF4J myself
>> so
>>>> I'm fine with this approach.
>>> is there something visible somewhere?
>>> I didn't find any discussion on slf4j-dev or slf4j-user mailing lists
>> nor any
>>> code in slf4j git repo
>> 
>> The suggested solution has existed for two years apparently. There is no
>> code that needs to be changed and no features to be added.
>> 
>>> 
>>> resetting TARGET_STREAM in SimpleLogger [1] would require a publid method
>>> or I imagine we can even tweak private field access and private method
>>> invocation through reflection
>>> 
>>> how are we supposed to work on this?
>> 
>> Just take a look at:
>> 
>> 
>> https://github.com/qos-ch/logback/blob/master/logback-classic/src/test/java/org/slf4j/LoggerFactoryFriend.java
>> 
>> Pretty straight forward. I don't have time to look at it until Friday but
>> if want to implement the reset go for it. I'll ping you on Friday to see
>> where you are and help out if you need it.
>> 
>>> Regards,
>>> 
>>> Hervé
>>> 
>>> 
>>> [1] https://github.com/qos-ch/slf4j/blob/master/slf4j-
>>> simple/src/main/java/org/slf4j/impl/SimpleLogger.java
>>> 
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [email protected] <javascript:;>
>>> For additional commands, e-mail: [email protected]<javascript:;>
>> 
>> Thanks,
>> 
>> Jason
>> 
>> ----------------------------------------------------------
>> Jason van Zyl
>> Founder & CTO, Sonatype
>> Founder,  Apache Maven
>> http://twitter.com/jvanzyl
>> ---------------------------------------------------------
>> 
>> We all have problems. How we deal with them is a measure of our worth.
>> 
>> -- Unknown
>> 
>> 
>> 
>> 
>> 
>> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to