Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [CDO] CDO server log trace
[CDO] CDO server log trace [message #491464] Wed, 14 October 2009 17:00 Go to next message
Eclipse UserFriend
Originally posted by: adomas.greicius.nomagic.com

Hello,

I was debugging cdo log engine and founded out that CDO server can not
print trace message to log file. Is it done by purpose? and why it is done
so?



Adomas
Re: [CDO] CDO server log trace [message #491568 is a reply to message #491464] Thu, 15 October 2009 06:01 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
Hi Adomas,

Why do you think it can not? Please try these:

org.eclipse.net4j.util.om.log.PrintLogHandler.PrintLogHandle r(PrintStream,
PrintStream)
org.eclipse.net4j.util.om.trace.PrintTraceHandler.PrintTrace Handler(PrintStream)

Cheers
/Eike

----
http://thegordian.blogspot.com
http://twitter.com/eikestepper



Adomas Greicius schrieb:
> Hello,
>
> I was debugging cdo log engine and founded out that CDO server can not
> print trace message to log file. Is it done by purpose? and why it is done
> so?
>
>
>
> Adomas
>
>
>
>


Re: [CDO] CDO server log trace [message #491573 is a reply to message #491568] Thu, 15 October 2009 07:04 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: adomas.greicius.nomagic.com

I understand that NET4J has flexible logging mechanism. But
org.eclipse.net4j.internal.util.bundle.OM$Activator class do not register
EclipseLoggingBridge on NET4J tracing, so CDO cannot use Eclipse logging
mechanism to log trace. Is this is done by purpose?


try
{
AbstractPlatform.INSTANCE.addLogHandler(EclipseLoggingBridge .INSTANCE);
//There is not
AbstractPlatform.INSTANCE.addTraceHandler(EclipseLoggingBrid ge.INSTANCE);
}
catch (Throwable ignore)
{
}
"Eike Stepper" <stepper@esc-net.de> wrote in message
news:hb6dri$44r$1@build.eclipse.org...
> Hi Adomas,
>
> Why do you think it can not? Please try these:
>
> org.eclipse.net4j.util.om.log.PrintLogHandler.PrintLogHandle r(PrintStream,
> PrintStream)
> org.eclipse.net4j.util.om.trace.PrintTraceHandler.PrintTrace Handler(PrintStream)
>
> Cheers
> /Eike
>
> ----
> http://thegordian.blogspot.com
> http://twitter.com/eikestepper
>
>
>
> Adomas Greicius schrieb:
>> Hello,
>>
>> I was debugging cdo log engine and founded out that CDO server can
>> not print trace message to log file. Is it done by purpose? and why it is
>> done so?
>>
>>
>>
>> Adomas
>>
>>
>>
>>
Re: [CDO] CDO server log trace [message #491771 is a reply to message #491573] Thu, 15 October 2009 18:04 Go to previous message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
Adomas Greicius schrieb:
> I understand that NET4J has flexible logging mechanism. But
> org.eclipse.net4j.internal.util.bundle.OM$Activator class do not register
> EclipseLoggingBridge on NET4J tracing, so CDO cannot use Eclipse logging
> mechanism to log trace. Is this is done by purpose?
>
Hm, if there was a purpose, I can not remember it anymore :P
I can not add it right now,because I'm not at home. Can you file a
bugzilla asa reminder?

Cheers
/Eike

----
http://thegordian.blogspot.com
http://twitter.com/eikestepper


>
> try
> {
> AbstractPlatform.INSTANCE.addLogHandler(EclipseLoggingBridge .INSTANCE);
> //There is not
> AbstractPlatform.INSTANCE.addTraceHandler(EclipseLoggingBrid ge.INSTANCE);
> }
> catch (Throwable ignore)
> {
> }
> "Eike Stepper" <stepper@esc-net.de> wrote in message
> news:hb6dri$44r$1@build.eclipse.org...
>
>> Hi Adomas,
>>
>> Why do you think it can not? Please try these:
>>
>> org.eclipse.net4j.util.om.log.PrintLogHandler.PrintLogHandle r(PrintStream,
>> PrintStream)
>> org.eclipse.net4j.util.om.trace.PrintTraceHandler.PrintTrace Handler(PrintStream)
>>
>> Cheers
>> /Eike
>>
>> ----
>> http://thegordian.blogspot.com
>> http://twitter.com/eikestepper
>>
>>
>>
>> Adomas Greicius schrieb:
>>
>>> Hello,
>>>
>>> I was debugging cdo log engine and founded out that CDO server can
>>> not print trace message to log file. Is it done by purpose? and why it is
>>> done so?
>>>
>>>
>>>
>>> Adomas
>>>
>>>
>>>
>>>
>>>
>
>
>
>


Previous Topic:[TENEO] PersistenceOptions.CASCADE_POLICY_ON_CONTAINMENT, "FALSE" and Addition of a new Ob
Next Topic:Dynamic templates to use OCL
Goto Forum:
  


Current Time: Wed Apr 24 16:22:22 GMT 2024

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

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

Back to the top