Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Logging
Logging [message #759360] Mon, 28 November 2011 13:32 Go to next message
Serge  is currently offline Serge Friend
Messages: 76
Registered: July 2009
Member
I have an issue concerning the logging under Eclipse RAP in general.
I log all the entries with the standard Log API of RCP : all the log entries of the concurrent sessions are mixed in the same ".log" file and I cannot determine from which session (and user) comes each entry.
I thing it is a common issue to all developments with RAP and I didn't find any indication in the documentation. I'd like to extend the logging with custom informations like sessionId, userId and perhaps some other context informations but I have the impression that the Eclipse logging is not designed to be extended.

Best regards.
Re: Logging [message #759759 is a reply to message #759360] Tue, 29 November 2011 20:42 Go to previous message
Rüdiger Herrmann is currently offline Rüdiger HerrmannFriend
Messages: 335
Registered: July 2009
Senior Member
Serge,

not sure what you mean with "standard Log API".
However, Platform.getLog(Bundle) obtains the logger from the
ExtendedLogService, an OSGi service. If you provide your own service
implementation, you can enrich the log entries with context information.
In doubt this question is best asked on the Platform/UI [1] or RCP [2]
forum.

HTH
Rüdiger

[1] http://www.eclipse.org/forums/index.php/f/11/
[2] http://www.eclipse.org/forums/index.php/f/106/

On 28.11.2011 14:32, Serge wrote:
> I have an issue concerning the logging under Eclipse RAP in general. I
> log all the entries with the standard Log API of RCP : all the log
> entries of the concurrent sessions are mixed in the same ".log" file and
> I cannot determine from which session (and user) comes each entry.
> I thing it is a common issue to all developments with RAP and I didn't
> find any indication in the documentation. I'd like to extend the logging
> with custom informations like sessionId, userId and perhaps some other
> context informations but I have the impression that the Eclipse logging
> is not designed to be extended.
>
> Best regards.

--
Rüdiger Herrmann
http://codeaffine.com
Previous Topic:Logging
Next Topic:connection problem
Goto Forum:
  


Current Time: Wed Oct 20 11:27:01 GMT 2021

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

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

Back to the top