Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Using OSGI LogReaderService with SLF4J/Logback(Redirect error messages)
Using OSGI LogReaderService with SLF4J/Logback [message #1710732] Thu, 08 October 2015 18:11
ALex W is currently offline ALex WFriend
Messages: 56
Registered: July 2012

I'm using a custom LogListener to redirect messages from Equinox logging to logback. I want to have everything in the same log file.
It works as expected except for the error/warning messages such as :

!SESSION 2015-10-08 20:02:50.334 -----------------------------------------------
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=fr_FR
Framework arguments:  -product ***** -equinox.ds.debug=true -equinox.ds.print=true
Command-line arguments:  -product ***** -consoleLog -equinox.ds.debug=true -equinox.ds.print=true

!ENTRY org.eclipse.equinox.ds 1 0 2015-10-08 20:02:51.452
!MESSAGE Could not bind a reference of component....

Is it possible to redirect them as well ?
Right now they are always logged in the .metadata/ log file. I'd like to have everything in the same file.

My bridge between Equinox and Logback is as follow :
public void logged(LogEntry entry) {;		

So I'm pretty sure it's not a matter of log level being filtered....
Any idea ?


[Updated on: Thu, 08 October 2015 18:16]

Report message to a moderator

Previous Topic:Missing binaries when building rt.equinox.framework
Next Topic:Bundle Pooling vs Shared Configuration
Goto Forum:

Current Time: Sat Oct 01 14:57:26 GMT 2022

Powered by FUDForum. Page generated in 0.01758 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top