Code Monkey home page Code Monkey logo

Comments (8)

DaHoC avatar DaHoC commented on August 15, 2024

@jellenelis You might also have a look at https://github.com/osgi/v2archive.osgi.enroute/tree/master/osgi.enroute.logger.simple.provider which tries to achieve the same thing for OSGi R6

from slf4j-osgi.

jellenelis avatar jellenelis commented on August 15, 2024

@DaHoC Thanks for the reference. I see that it is part of the EnRoute archive so probably it will not be maintained. Is there any project that is maintained that does this for r7? I did not find one in my search. An slf4j-over-osgi project within the SLF4J project would be the most logical place according to me.

from slf4j-osgi.

bjhargrave avatar bjhargrave commented on August 15, 2024

Yes, I was planning on releasing this but would like to make sure it is working for people first. Have you tried it?

from slf4j-osgi.

DaHoC avatar DaHoC commented on August 15, 2024

I have re-written and tested the code for OSGi R6 (using LogService via ServiceTracker), and added some logging bridges which all works.
Unfortunately, it cannot be fully applied to our use case - I am currently re-writing the code I formerly linked which hopefully can be adapted to our needs.

from slf4j-osgi.

jellenelis avatar jellenelis commented on August 15, 2024

Yes, I was planning on releasing this but would like to make sure it is working for people first. Have you tried it?

Haven't tried it yet, since I could not find it anywhere. Is https://oss.sonatype.org/content/repositories/osgi-snapshots/org/osgi/slf4j.osgi/1.7.0-SNAPSHOT/ the right place to get the bundle to test? If so, I am more than happy to test this for you. I will be able to do so tomorrow.

from slf4j-osgi.

bjhargrave avatar bjhargrave commented on August 15, 2024

Is https://oss.sonatype.org/content/repositories/osgi-snapshots/org/osgi/slf4j.osgi/1.7.0-SNAPSHOT/ the right place to get the bundle to test?

Yes. Unless you build the project yourself to put it in your local repo.

from slf4j-osgi.

jellenelis avatar jellenelis commented on August 15, 2024

Just tested it with a component that periodically logged something on each slf4j level. Next to that I had a LogListener that printed out the LogEntry instances it received (configurable with a gogo command). It works like a charm. Exceptions were provided correctly and I also tested the {} notations, that also works.

from slf4j-osgi.

bjhargrave avatar bjhargrave commented on August 15, 2024

1.7.0 is now released to Maven Central: https://repo.maven.apache.org/maven2/org/osgi/slf4j.osgi/1.7.0/.

from slf4j-osgi.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.