Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [equinox-dev] Disabling the LogService

I got it working, but here's a caveat. Equinox forces some of its log
messages to its log in some way which ignore your class, namely,
exception backtraces from failures in bundle activators.




On Fri, Aug 12, 2016 at 8:35 AM, Benson Margulies <benson@xxxxxxxxxxxxx> wrote:
> What is an 'Embedded-Activator'?
>
> I tried to borrow your class via a pax-exam tiny bundle, and it is
> never activated. I wondered about that declaration in the bnd.bnd.
>
>
> bundle()
>         .add(HideEquinoxLog.class)
>         .set(Constants.BUNDLE_SYMBOLICNAME, "hide-equinox-log")
>         .set(Constants.BUNDLE_ACTIVATOR, HideEquinoxLog.class.getName())
>         .build(withBnd()))
>
>
> On Fri, Aug 12, 2016 at 7:42 AM, Benson Margulies <benson@xxxxxxxxxxxxx> wrote:
>> On Fri, Aug 12, 2016 at 7:39 AM, Peter Kriens <peter.kriens@xxxxxxxxx> wrote:
>>> Should happen before the end of next month. We’re working on making ALL OSGi enRoute bundles available in Maven Central.
>>>
>>> In this case you might want to copy the source code since the bundle is so trivial.
>>
>> Yes, I can do that.
>>
>>>
>>> Kind regards,
>>>
>>>         Peter Kriens
>>>
>>>> On 12 aug. 2016, at 13:32, Benson Margulies <benson@xxxxxxxxxxxxx> wrote:
>>>>
>>>> Peter,
>>>>
>>>> Thanks. I don't suppose you've published this thing to Maven Central?
>>>>
>>>> --benson
>>>>
>>>>
>>>> On Fri, Aug 12, 2016 at 2:33 AM, Peter Kriens <peter.kriens@xxxxxxxxx> wrote:
>>>>> For OSGi enRoute I wrote a simple adapter that hides the Equinox log:
>>>>>
>>>>> https://github.com/osgi/osgi.enroute.bundles/tree/master/osgi.enroute.equinox.log.adapter
>>>>> https://oss.sonatype.org/content/repositories/osgi/org/osgi/osgi.enroute.equinox.log.adapter/
>>>>>
>>>>> Kind regards,
>>>>>
>>>>> Peter Kriens
>>>>>
>>>>> On 11 aug. 2016, at 22:42, Benson Margulies <benson@xxxxxxxxxxxxx> wrote:
>>>>>
>>>>> I'd like to use the SLF4J log services instead of the built-in Equinox
>>>>> log service.
>>>>>
>>>>> When I just add the SLF4J bundle to my container, the Equinox
>>>>> LogService still ends up being the official log service.
>>>>>
>>>>> Is there some framework property I can set or something else i can do
>>>>> to turn it off?
>>>>> _______________________________________________
>>>>> equinox-dev mailing list
>>>>> equinox-dev@xxxxxxxxxxx
>>>>> To change your delivery options, retrieve your password, or unsubscribe from
>>>>> this list, visit
>>>>> https://dev.eclipse.org/mailman/listinfo/equinox-dev
>>>>>
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> equinox-dev mailing list
>>>>> equinox-dev@xxxxxxxxxxx
>>>>> To change your delivery options, retrieve your password, or unsubscribe from
>>>>> this list, visit
>>>>> https://dev.eclipse.org/mailman/listinfo/equinox-dev
>>>> _______________________________________________
>>>> equinox-dev mailing list
>>>> equinox-dev@xxxxxxxxxxx
>>>> To change your delivery options, retrieve your password, or unsubscribe from this list, visit
>>>> https://dev.eclipse.org/mailman/listinfo/equinox-dev
>>>
>>>
>>> _______________________________________________
>>> equinox-dev mailing list
>>> equinox-dev@xxxxxxxxxxx
>>> To change your delivery options, retrieve your password, or unsubscribe from this list, visit
>>> https://dev.eclipse.org/mailman/listinfo/equinox-dev


Back to the top