|Re: [equinox-dev] Using log4j with LogService|
Thanks for the quick reply. Yes I can use the LogReader Service and then direct it to log4j. However this means that I will have to do a getBundle() or get ServiceReference on the LogEntry and do a check everytime there is something logged whether it is something i`m interested in. With a lot of bundles loaded in OSGi, i`m concerned whether this could become a bottleneck. Please adviseand correct me if wrong.
You can write code which uses to LogReaderService to receive log entries as they are written to the LogService and the writes them to log4j.
----- Original Message -----
I am working on the logging module of a project which uses log4j. I am writing it as a bundle which will expose it`s own service for logging in the OSGi runtime. I would like to know whether it is possible for me to integrate this with the Equinox Log Service? For example is it possible for me to configure the OSGi Log Service as an appender for my log4j module. My intention is that consumer bundles should be able to use either OSGi Log Service/ My Logging service and logs should happen in both.
Thanks in advance for your help.