Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-core-dev] Re: Log File DTD

Scott, the code is stable enough to start writing doc against it.  We are
only making critical fixes from now on, and for every change there will be
an announcement to this list.  We don't currently have doc available for
the log file format, although this is something we may ourselves be doing
during our documentation pass.  For now, the best I can do is direct you to
the log writing code.  If you download the F2 build, the source is now
found in a new place, the platform source plugin.  The full path to the
source zip in this case is:

eclipse/plugins/org.eclipse.platform.source_2.0.0/src/org.eclipse.core.runtime_2.0.0/runtimesrc.zip

The class is called PlatformLogWriter.  I hope that's enough to get you
started...

John.




                                                                                                              
                      "Scott                                                                                  
                      Fairbrother"             To:      John_Arthorne@xxxxxxx                                 
                      <scottf@xxxxxx.c         cc:                                                            
                      om>                      Subject: Re: [platform-core-dev] Re: Log File DTD              
                                                                                                              
                      05/31/2002 02:30                                                                        
                      PM                                                                                      
                                                                                                              
                                                                                                              



Hi John,

I would like to author some doc describing the file format to the service
people who look at the logs using notepad.   Is the code at a state where I
might be able to draft a document that describes the log file format?  Can
you point me in the right direction to get me started?


Thanks,
Scott Fairbrother
 WebSphere Studio Workbench ISV Enablement OTI - RTP
B218/503
IBM Corp
4205 South Miami Blvd.
RTP, NC 27709
Voice : 919-254-1488
TL : 8-444-1488
FAX   : (919) 000-000




                      John_Arthorne@xxxxxxx

                      Sent by:                        To:
platform-core-dev@xxxxxxxxxxx
                      platform-core-dev-admin@        cc:

                      eclipse.org                     Subject:
[platform-core-dev] Re: Log File DTD


                      05/31/2002 01:32 PM

                      Please respond to

                      platform-core-dev







The XML syntax for log files proved to be problematic.  Specifically, since
XML requires only one single top-level element, it is very difficult to
maintain an ongoing log whose syntax remains correct.  If eclipse crashed,
the log file element didn't get closed, and the log file syntax could not
be parsed by an XML parser.  See the following bug report for a lengthly
discussion of the issue:

http://dev.eclipse.org/bugs/show_bug.cgi?id=14223

I have removed the RFC from the core page.  Sorry for the confusion.
Things have been changing fast, and inevitably code changes faster than
documentation...





                      "Scott

                      Fairbrother"             To:
John_Arthorne@xxxxxxx
                      <scottf@xxxxxx.c         cc:

                      om>                      Subject: Log File DTD


                      05/31/2002 12:40

                      PM






Hi John,

The log file that I'm seeing in build F1 does not look like the logfile DTD
specified in RFC 0003 at
http://dev.eclipse.org/viewcvs/index.cgi/~checkout~/platform-core-home/rfc/0003/index.html


.



What is the status of the RFC?

Here is the log that I created with my logging example:


!SESSION May 31, 2002 11:14:26.614
---------------------------------------------
java.fullversion=J2RE 1.3.1 IBM Windows 32 build cn131-20020403 (JIT
enabled: jitc)
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Command-line arguments: -dev bin -data D:\F1\eclipse\runtime-workspace -os
win32 -ws win32 -arch x86
!ENTRY org.eclipse.core.resources 1 4 May 31, 2002 11:14:26.614
!MESSAGE Reference action not found: additions
!ENTRY com.ibm.wsweducation.example.serviceableplugin 4 4 May 31, 2002
11:14:37.190
!MESSAGE Test Error Message
!STACK 1
com.ibm.wsweducation.example.serviceableplugin.ServiceException: Test Error
Message
      at
com.ibm.wsweducation.example.serviceableplugin.ErrorDialogAction.throwIt(ErrorDialogAction.java:70)



      at
com.ibm.wsweducation.example.serviceableplugin.ErrorDialogAction.run(ErrorDialogAction.java:34)



      at
org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:210)
      at
org.eclipse.ui.internal.WWinPluginAction.runWithEvent(WWinPluginAction.java:171)



      at
org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:407)



      at
org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent(ActionContributionItem.java:361)



      at
org.eclipse.jface.action.ActionContributionItem.access$0(ActionContributionItem.java:352)



      at
org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent(ActionContributionItem.java:47)



      at
org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java(Compiled
Code))
      at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:825)
      at
org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1527)
      at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1289)
      at
org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1085)
      at org.eclipse.ui.internal.Workbench.run(Workbench.java:1068)
      at
org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:739)



      at org.eclipse.core.boot.BootLoader.run(BootLoader.java:432)
      at EclipseRuntimeLauncher.main(EclipseRuntimeLauncher.java:24)
!ENTRY com.ibm.wsweducation.example.serviceableplugin 4 0 May 31, 2002
11:14:37.220
!MESSAGE Test Error Message
!SUBENTRY 1 com.ibm.wsweducation.example.serviceableplugin 4 0 May 31, 2002
11:14:37.220
!MESSAGE Plug-in Provider:.... IBM
!SUBENTRY 1 com.ibm.wsweducation.example.serviceableplugin 4 0 May 31, 2002
11:14:37.220
!MESSAGE Plug-in Name:....... Serviceable Plugin
!SUBENTRY 1 com.ibm.wsweducation.example.serviceableplugin 4 0 May 31, 2002
11:14:37.220
!MESSAGE Plug-in ID:...........
com.ibm.wsweducation.example.serviceableplugin
!SUBENTRY 1 com.ibm.wsweducation.example.serviceableplugin 4 0 May 31, 2002
11:14:37.220
!MESSAGE Version:.............. 1.0.0
!SUBENTRY 1 com.ibm.wsweducation.example.serviceableplugin 4 4 May 31, 2002
11:14:37.220
!MESSAGE The error was detected in Class:
com.ibm.wsweducation.example.serviceableplugin.ErrorDialogAction
!STACK 1
com.ibm.wsweducation.example.serviceableplugin.ServiceException: Test Error
Message
      at
com.ibm.wsweducation.example.serviceableplugin.ErrorDialogAction.throwIt(ErrorDialogAction.java:70)



      at
com.ibm.wsweducation.example.serviceableplugin.ErrorDialogAction.run(ErrorDialogAction.java:34)



      at
org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:210)
      at
org.eclipse.ui.internal.WWinPluginAction.runWithEvent(WWinPluginAction.java:171)



      at
org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:407)



      at
org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent(ActionContributionItem.java:361)



      at
org.eclipse.jface.action.ActionContributionItem.access$0(ActionContributionItem.java:352)



      at
org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent(ActionContributionItem.java:47)



      at
org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java(Compiled
Code))
      at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:825)
      at
org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1527)
      at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1289)
      at
org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1085)
      at org.eclipse.ui.internal.Workbench.run(Workbench.java:1068)
      at
org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:739)



      at org.eclipse.core.boot.BootLoader.run(BootLoader.java:432)
      at EclipseRuntimeLauncher.main(EclipseRuntimeLauncher.java:24)
!ENTRY com.ibm.wsweducation.example.serviceableplugin 4 0 May 31, 2002
11:14:37.240
!MESSAGE Test Error Message


Thanks,
Scott Fairbrother
 WebSphere Studio Workbench ISV Enablement OTI - RTP
B218/503
IBM Corp
4205 South Miami Blvd.
RTP, NC 27709
Voice : 919-254-1488
TL : 8-444-1488
FAX   : (919) 000-000





_______________________________________________
platform-core-dev mailing list
platform-core-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/platform-core-dev









Back to the top