Log

From PatioWiki

(Difference between revisions)
Jump to: navigation, search
 
Line 1: Line 1:
-
A [[Log]] file from one [[:Category:Exercises|Exercise]] consists in a [http://en.wikipedia.org/wiki/XML XML] file which is divided in four sections at the most:
+
When an [[:Category:Exercises|Exercise]] has been done, a [[Log]] file is generated. It is an [http://en.wikipedia.org/wiki/XML XML] file which is divided into four sections at the most:
; Header
; Header
-
: Here are defined the type of exercise, the pupil code, the date and mode of the execution and window's size in which the exercise has been executed.
+
: Here are defined the type of exercise, the pupil code, the date and mode of the execution and the window's size in which the exercise has been executed.
; ''Exercise'' section
; ''Exercise'' section
-
: Contains information about the exercise. This section is optional.
+
: It contains information about the exercise. This section is optional.
; ''AbstractLog'' section
; ''AbstractLog'' section
-
: Contains the high-level events of the exercise.
+
: It contains the high-level events of the exercise.
; ''MouseLog'' section
; ''MouseLog'' section
-
: Contains the low-level events of the pointer device.
+
: It contains the low-level events of the pointer device.
; ''PaintedPointsLog'' section
; ''PaintedPointsLog'' section
-
: Contains the low-level events of the drawing panel.
+
: It contains the low-level events of the drawing panel.
-
Notice that the data contained in the ''exercise'' and ''abstracLog'' sections depends on the exercise type.
+
Note that the data in the ''exercise'' and ''abstracLog'' sections depends on the exercise type.
-
Finally, in the ''mouseLog'' section only can be events of these kind:
+
Finally, in the ''mouseLog'' section there can only be events of these kinds:
* Pointer press.
* Pointer press.
Line 21: Line 21:
* Pointer activation.
* Pointer activation.
-
While the ''paintedPointsLog'' section can also contains events of these kind:
+
While the ''paintedPointsLog'' section can also contain events of the following types:
* Colour change.
* Colour change.

Current revision as of 15:38, 24 October 2011

When an Exercise has been done, a Log file is generated. It is an XML file which is divided into four sections at the most:

Header
Here are defined the type of exercise, the pupil code, the date and mode of the execution and the window's size in which the exercise has been executed.
Exercise section
It contains information about the exercise. This section is optional.
AbstractLog section
It contains the high-level events of the exercise.
MouseLog section
It contains the low-level events of the pointer device.
PaintedPointsLog section
It contains the low-level events of the drawing panel.

Note that the data in the exercise and abstracLog sections depends on the exercise type.

Finally, in the mouseLog section there can only be events of these kinds:

  • Pointer press.
  • Pointer drag.
  • Pointer release.
  • Pointer activation.

While the paintedPointsLog section can also contain events of the following types:

  • Colour change.
  • Size change.
  • Tool change.
Personal tools
In other languages