Skip to main content



      Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Logging
Logging [message #759360] Mon, 28 November 2011 08:32 Go to next message
Eclipse UserFriend
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 15:42 Go to previous message
Eclipse UserFriend
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: Mon Jul 14 00:00:08 EDT 2025

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

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

Back to the top