Log file : Différence entre versions

De Wiki
Aller à : navigation, rechercher
(Page créée avec « TBW ... Return to the introduction ↑ Go to the next page → »)
 
Ligne 1 : Ligne 1 :
TBW ...
+
<font color=#556B2F>'''GENIUS'''</font> proposes to manage a log file that will record your actions. This is, up to now, the default mode, so you will not have to do anything then a log file named '''Genius.log''' will be automatically created at the same place you will have started your process.
 +
 
 +
If you do not want this possibility, you will have to call for the following method with these arguments:
 +
 
 +
<syntaxhighlight lang="java">
 +
GEnvironment.setLogFilename(null, false);
 +
</syntaxhighlight>
 +
 
 +
On the contrary, using the same method, you will have the possibility to specify another name for the log file as well as the creation of a logEventTable if the second argument is true.
 +
 
 +
<syntaxhighlight lang="java">
 +
GEnvironment.setLogFilename("myLogFile.xml", true);
 +
</syntaxhighlight>
 +
 
 +
You will have also the possibility to define which kind of information you will store, using the folloxing methods:
 +
 
 +
<syntaxhighlight lang="java">
 +
GEnvironment.setWriteLogDataModififiedEvent(true/false);
 +
GEnvironment.setWriteLogDataValidityEvent(true/false);
 +
</syntaxhighlight>
 +
 
 +
''To be completed ...''
 +
 
  
 
[[WELCOME_TO_THE_GENIUS_WIKI|Return to the introduction ↑]]  
 
[[WELCOME_TO_THE_GENIUS_WIKI|Return to the introduction ↑]]  
 
[[Update_data|Go to the next page →]]
 
[[Update_data|Go to the next page →]]

Version du 5 mai 2017 à 12:56

GENIUS proposes to manage a log file that will record your actions. This is, up to now, the default mode, so you will not have to do anything then a log file named Genius.log will be automatically created at the same place you will have started your process.

If you do not want this possibility, you will have to call for the following method with these arguments:

GEnvironment.setLogFilename(null, false);

On the contrary, using the same method, you will have the possibility to specify another name for the log file as well as the creation of a logEventTable if the second argument is true.

GEnvironment.setLogFilename("myLogFile.xml", true);

You will have also the possibility to define which kind of information you will store, using the folloxing methods:

GEnvironment.setWriteLogDataModififiedEvent(true/false);
GEnvironment.setWriteLogDataValidityEvent(true/false);

To be completed ...


Return to the introduction ↑ Go to the next page →