Is there any way for a bundle to print an string in OSGi output stream?
I mean like System.out.println("String");
. Instead of this I want the bundle to print its strings in that stream.
public void start(BundleContext bundleContext) throws Exception {
Activator.context = bundleContext;
System.out.println("Hello World!"); // I want to print this string in osgi console.
}
You see, if I run the OSGi framework it will print its responses to commands in Java Console, where System.out prints as well.
But my problem is that, I'm printing its outputs in a JTextArea, so I want bundles to be able to print there too (Print its strings in OSGi Console output stream). in this case I need a way to access the OSGi output stream.