Keys in the ODB /Logger tree: Difference between revisions
(25 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
{{Pagelinks}} | |||
==== Links ==== | ==== Links ==== | ||
<div style="column-count: | <div style="column-count:4;-moz-column-count:4;-webkit-column-count:4"> | ||
* [[/Logger ODB tree| /Logger tree]] | * [[/Logger ODB tree| /Logger tree]] | ||
* [[Logging to a mySQL database]] | * [[Logging to a mySQL database]] | ||
* [[Keys in the ODB /Logger/Channels subtree| /Logger/Channels subtree]] | * [[Keys in the ODB /Logger/Channels subtree| /Logger/Channels subtree]] | ||
* [[Keys in the ODB /Logger/ | * [[Keys in the ODB /Logger/Runlog| /Logger/Runlog subtree]] | ||
* [[Keys in the ODB /Logger/History subtree| /Logger/History subtree]] | * [[Keys in the ODB /Logger/History subtree |/Logger/History subtree]] | ||
* [[/History ODB tree]] | |||
* [[mlogger |MIDAS logger (mlogger)]] | * [[mlogger |MIDAS logger (mlogger)]] | ||
</div> | </div> | ||
Line 11: | Line 14: | ||
--------------- | --------------- | ||
<br> | <br> | ||
== Keys in the <span style="color: purple;">''/Logger''</span> tree == | |||
== | === <span style="color: purple;">''Data dir''</span> === | ||
== <span style="color: purple;">'' | |||
<div style="column-count:3;-moz-column-count:3;-webkit-column-count:3"> | <div style="column-count:3;-moz-column-count:3;-webkit-column-count:3"> | ||
* '''Type:''' STRING | * '''Type:''' STRING | ||
Line 27: | Line 22: | ||
This key specifies in which directory files produced by the MIDAS logger utility ([[mlogger]]) should be written. | This key in the ODB [[#top|/Logger tree]] specifies in which directory files produced by the MIDAS logger utility ([[mlogger]]) should be written. | ||
Once mlogger is running , the key <span style="color: purple;">''Data dir''</span> will be pointing to the location of | Once mlogger is running , the key <span style="color: purple;">''Data dir''</span> will be pointing to the location of | ||
When [[#Multiple Logging Channels| multiple logging channels]] are enabled, | * the data file(s) (unless overruled by the [[Keys in the ODB /Logger/Channels tree #/Logger/Channels/0/Settings/Filename | Filename ]] key(s) ), | ||
* the message log file (unless overruled by [[#/Logger/Message File | Message File]]), | |||
* the ODB dump files (unless overruled by [[#/Logger/ODB Dump File | ODB Dump File]]), | |||
* and the optional | |||
** elog files (unless overruled by [[#/Logger/Elog dir|Elog dir]]), | |||
** [[History System|MIDAS history files]] (unless overruled by [[#/Logger/History dir | History Dir]]) | |||
It is preferable to use a full directory path for this key (i.e. "''/home/username/online/data''" rather than a relative path, such as the current directory "''./''"). If set to the current directory, running a client such as [[odbedit]] from a different directory will result in a second midas.log file created in that directory. | |||
When '''[[#Multiple Logging Channels| multiple logging channels]]''' are enabled, | |||
by default, the data path for <b>all</b> the defined logging channels is set to the same location, given by the <span style="color: purple;">''Data dir''</span> key. | by default, the data path for <b>all</b> the defined logging channels is set to the same location, given by the <span style="color: purple;">''Data dir''</span> key. | ||
However, the data from individual logging channels can also be saved in different locations, using | However, the data from individual logging channels can also be saved in different locations, using | ||
Line 61: | Line 56: | ||
<br> | <br> | ||
== <span style="color: purple;">''/ | === <span style="color: purple;">''Message dir''</span> === | ||
<div style="column-count:3;-moz-column-count:3;-webkit-column-count:3"> | |||
* '''Type:''' STRING | |||
* '''Default:''' "" | |||
</div> | |||
This key was introduced in August 2020. It specifies the directory in which [[Message System#MIDAS Log file|MIDAS Message log files]] will be stored. If this ODB entry is empty, the same directory as specified in [[#Data_dir"|Data dir]] will be used. | |||
<br> | |||
------ | |||
<br> | |||
=== <span style="color: purple;">''Message file date format''</span> === | |||
<div style="column-count:3;-moz-column-count:3;-webkit-column-count:3"> | |||
* '''Type:''' STRING | |||
* '''Default:''' "" | |||
</div> | |||
This key was introduced in August 2020. It specifies a date-based suffix to be used when creating [[Message System#MIDAS Log file|MIDAS Message log files]] (e.g. if you want to automatically create a new log file every year, you could specify "%Y" as the format. Any format specifiers recognised by [http://www.cplusplus.com/reference/ctime/strftime/ strftime] may be used. | |||
If this key is empty, the full filenames used are "<message_dir>/<facility>.log", where the facility is normally midas. | |||
If this key is not empty, the full filenames used are "<message_dir>/<facility>_<date_based_suffix>.log". E.g. if the specified format is %Y, files will be created named midas_2020.log, midas_2021.log etc. If one wants one message file per day, one could use %y%m%d, which produces midas_200810.log, midas_200811.log, etc. | |||
<br> | |||
------ | |||
<br> | |||
=== <span style="color: purple;">''Message File (obsolete)''</span> === | |||
<div style="column-count:3;-moz-column-count:3;-webkit-column-count:3"> | <div style="column-count:3;-moz-column-count:3;-webkit-column-count:3"> | ||
* '''Type:''' STRING | * '''Type:''' STRING | ||
* '''Default:''' " | * '''Default:''' "midas.log" | ||
</div> | </div> | ||
This key was replaced by the [[#Message_dir|Message dir]] and [[#Message_file_date_format|Message file date format]] keys in August 2020. Before then, it was used to specify the filename of the [[Message System#MIDAS Log file|MIDAS Message log file]] . | |||
<br> | <br> | ||
Line 75: | Line 100: | ||
== <span style="color: purple;">'' | === <span style="color: purple;">''Auto restart''</span> === | ||
<div style="column-count:3;-moz-column-count:3;-webkit-column-count:3"> | <div style="column-count:3;-moz-column-count:3;-webkit-column-count:3"> | ||
* '''Type:''' BOOL | * '''Type:''' BOOL | ||
Line 81: | Line 106: | ||
</div> | </div> | ||
When this | When this key in the ODB [[#top|/Logger tree]] is set to "y" (i.e. TRUE), a new run is automatically restarted when the previous run has been stopped by the MIDAS logger ([[mlogger]]) | ||
due to an event or byte limit. | due to an event or byte limit. | ||
Line 88: | Line 113: | ||
<br> | <br> | ||
== <span style="color: purple;">'' | === <span style="color: purple;">''Auto restart delay ''</span> === | ||
<div style="column-count:3;-moz-column-count:3;-webkit-column-count:3"> | <div style="column-count:3;-moz-column-count:3;-webkit-column-count:3"> | ||
* '''Type:''' INT | * '''Type:''' INT | ||
Line 95: | Line 120: | ||
Providing [[# | Providing [[#Auto restart|Auto restart key]] is set TRUE, the automatic start of the next run will be delayed by the number of milliseconds specified by this key in the ODB [[#top|/Logger tree]]. | ||
<br> | <br> | ||
Line 101: | Line 126: | ||
<br> | <br> | ||
== <span style="color: purple;">'' | === <span style="color: purple;">''Run duration ''</span> === | ||
<div style="column-count:3;-moz-column-count:3;-webkit-column-count:3"> | <div style="column-count:3;-moz-column-count:3;-webkit-column-count:3"> | ||
* '''Type:''' INT | * '''Type:''' INT | ||
Line 108: | Line 133: | ||
This key allows for runs with a certain duration. To use this option, the user creates and sets this variable to a non-zero '''integer''' value (in seconds). After a run has lasted for this duration, it will be stopped automatically by the MIDAS logger ([[mlogger]]). To automatically produce sequences of runs all with the same duration, also set the | This key in the ODB [[#top|/Logger tree]] allows for runs with a certain duration. To use this option, the user creates and sets this variable to a non-zero '''integer''' value (in seconds). After a run has lasted for this duration, it will be stopped automatically by the MIDAS logger ([[mlogger]]). To automatically produce sequences of runs all with the same duration, also set the | ||
[[#/Logger/Auto restart|/Logger/Auto restart key]] to "y" | [[#/Logger/Auto restart|/Logger/Auto restart key]] to "y" | ||
Line 115: | Line 140: | ||
<br> | <br> | ||
== <span style="color: purple;">'' | === <span style="color: purple;">''Write data ''</span> === | ||
<div style="column-count:3;-moz-column-count:3;-webkit-column-count:3"> | <div style="column-count:3;-moz-column-count:3;-webkit-column-count:3"> | ||
* '''Type:''' BOOL | * '''Type:''' BOOL | ||
Line 122: | Line 147: | ||
Data logging is enabled when this key is set to "y". It can be set to "n" (FALSE) temporarily to make a short test run without data logging. | Data logging is enabled when this key in the ODB [[#top|/Logger tree]] is set to "y". It can be set to "n" (FALSE) temporarily to make a short test run without data logging. | ||
This key is a predefined key for enabling data logging. | This key is a predefined key for enabling data logging. | ||
Note that the [[Keys in the ODB /Logger/Channels tree # | Note that the [[Keys in the ODB /Logger/Channels tree #Active | Active key]] (in the appropriate | ||
[[Keys in the ODB /Logger/Channels tree # | [[Keys in the ODB /Logger/Channels tree #Settings subtree |logging channel subtree ]] ) | ||
must <b>also</b> | must <b>also</b> | ||
be set to "y" for the data from that channel to be logged. | be set to "y" for the data from that channel to be logged. | ||
Line 135: | Line 160: | ||
== <span style="color: purple;">'' | === <span style="color: purple;">''ODB Dump''</span> === | ||
<div style="column-count:3;-moz-column-count:3;-webkit-column-count:3"> | <div style="column-count:3;-moz-column-count:3;-webkit-column-count:3"> | ||
* '''Type:''' BOOL | * '''Type:''' BOOL | ||
Line 142: | Line 167: | ||
If this | If this key in the ODB [[#top|/Logger tree]] is set to "y", a dump of the complete ODB will be written to the file specified by the key [[#ODB Dump file|ODB Dump file]] at the end of each run. | ||
ODB Dump file at the end of each run. | |||
<ul> | <ul> | ||
<li>The ODB contents is <b>always</b> saved into a file "last. | ;NOTE | ||
<li>The ODB contents can also be saved into the data stream as an event (see ODB Dump per logging channel). </li> | <li>The ODB contents is <b>always</b> saved into a file (default is "last.json") at the beginning of each run regardless of the setting of this key.</li> The format is specified by the [[Keys in the ODB /Logger/Channels subtree#ODB dump format]] key. | ||
<li>The ODB contents can also be saved into the data stream as an event (see [[Keys in the ODB /Logger/Channels tree #ODB Dump|ODB Dump per logging channel]]). </li> | |||
</ul> | </ul> | ||
Line 154: | Line 180: | ||
<br> | <br> | ||
== <span style="color: purple;">'' | === <span style="color: purple;">''ODB Dump File ''</span> === | ||
<div style="column-count:3;-moz-column-count:3;-webkit-column-count:3"> | <div style="column-count:3;-moz-column-count:3;-webkit-column-count:3"> | ||
* '''Type:''' STRING | * '''Type:''' STRING | ||
* '''Default:''' "run%05d. | * '''Default:''' "run%05d.json" | ||
</div> | </div> | ||
This key in the ODB [[#top|/Logger tree]] specifies the filename in which the dump of the complete ODB will be | |||
written at the end of each run if the [[# | written at the end of each run if the [[#ODB Dump]] key is set to "y". The default for the format of the file | ||
is now json (since March 2019). Previously it was "run%05d.odb", with the format being xml by default. | |||
format | |||
If this filename contains a "%", the "%" will be replaced by the current run number (cf. format string of printf() C function). The format specifier "%05d" from the example would be evaluated to a five digit run number with leading zeros e.g. run00002. | If this filename contains a "%", the "%" will be replaced by the current run number (cf. format string of printf() C function). The format specifier "%05d" from the example would be evaluated to a five digit run number with leading zeros e.g. run00002.json. The ODB dump file can be used for off-line analysis to check run parameters etc. (See also | ||
[[Keys in the ODB /Logger/Channels tree #/Logger/Channels/0/Settings/ODB Dump | ODB Dump per logging channel]]). | [[Keys in the ODB /Logger/Channels tree #/Logger/Channels/0/Settings/ODB Dump | ODB Dump per logging channel]]). | ||
<ul> | <ul> | ||
<li><b>Note:</b> The location of the ODB dump files can also be specified in this field. If the ODB Dump File string contains a DIR_SEPARATOR, | <li><b>Note:</b> The location of the ODB dump files can also be specified in this field. If the ODB Dump File string contains a DIR_SEPARATOR, | ||
it is considered as an absolute path. If no DIR_SEPARATOR is present, the dump file will be written to the location given by [[# | it is considered as an absolute path. If no DIR_SEPARATOR is present, the dump file will be written to the location given by [[#Data dir |Data dir key]]. | ||
</li> | </li> | ||
</ul> | </ul> | ||
Line 179: | Line 204: | ||
<br> | <br> | ||
== <span style="color: purple;">''/Logger | === <span style="color: purple;">''ODB Last Dump File ''</span> === | ||
<div style="column-count:3;-moz-column-count:3;-webkit-column-count:3"> | |||
* '''Type:''' STRING | |||
* '''Default:''' "last.json" | |||
</div> | |||
This key in the ODB [[#top|/Logger tree]] contains the filename of the odb dump file last saved. It is always saved, independent of the setting of the key [[#ODB Dump]]. | |||
<br> | |||
------ | |||
<br> | |||
=== <span style="color: purple;">''WriteFileHistory''</span> === | |||
<div style="column-count:3;-moz-column-count:3;-webkit-column-count:3"> | <div style="column-count:3;-moz-column-count:3;-webkit-column-count:3"> | ||
* '''Type:''' BOOL | * '''Type:''' BOOL | ||
Line 185: | Line 221: | ||
</div> | </div> | ||
This key in the ODB [[#top|/Logger tree]] is obsolete. Use [[Keys in the ODB /Logger/History subtree#/Logger/History/0/Active|Active]] key instead. | |||
<br> | <br> | ||
Line 192: | Line 228: | ||
<br> | <br> | ||
== <span style="color: purple;">'' | === <span style="color: purple;">''Tape message''</span> === | ||
<div style="column-count:3;-moz-column-count:3;-webkit-column-count:3"> | <div style="column-count:3;-moz-column-count:3;-webkit-column-count:3"> | ||
* '''Type:''' BOOL | * '''Type:''' BOOL | ||
Line 199: | Line 235: | ||
If set to "y", MIDAS messages during mounting tapes and writing of EOF marks are generated. This can be useful all users in a counting house to be informed about the tape status. | If this key in the ODB [[#top|/Logger tree]] is set to "y", MIDAS messages during mounting tapes and writing of EOF marks are generated. This can be useful all users in a counting house to be informed about the tape status. | ||
<br> | <br> | ||
Line 205: | Line 241: | ||
<br> | <br> | ||
== <span style="color: purple;">'' | === <span style="color: purple;">''ODBC Debug''</span> (obsolete) === | ||
<div style="column-count:3;-moz-column-count:3;-webkit-column-count:3"> | <div style="column-count:3;-moz-column-count:3;-webkit-column-count:3"> | ||
* '''Type:''' INT | * '''Type:''' INT | ||
Line 211: | Line 247: | ||
</div> | </div> | ||
This key is now obsolete | This key in the ODB [[#top|/Logger tree]] is now obsolete. It has been replaced by [[Keys in the ODB /Logger/History subtree#/Logger/History/1/Debug|Debug]] key. | ||
It has been replaced by | |||
[[Keys in the ODB /Logger/History subtree#/Logger/History/1/Debug| | |||
<br> | <br> | ||
Line 220: | Line 253: | ||
<br> | <br> | ||
== <span style="color: purple;">'' | === <span style="color: purple;">''ODBC DSN''</span> (obsolete) === | ||
<div style="column-count:3;-moz-column-count:3;-webkit-column-count:3"> | <div style="column-count:3;-moz-column-count:3;-webkit-column-count:3"> | ||
* '''Type:''' STRING | * '''Type:''' STRING | ||
Line 226: | Line 259: | ||
</div> | </div> | ||
This key in the ODB [[#top|/Logger tree]] is now obsolete. It has been replaced by [[Keys in the ODB /Logger/History subtree#/Logger/History/1/Writer_ODBC_DSN|Writer_ODBC_DSN]] key. | |||
This key is now obsolete | |||
It has been replaced by | |||
[[Keys in the ODB /Logger/History subtree#/Logger/History/1/Writer_ODBC_DSN| | |||
Line 237: | Line 266: | ||
<br> | <br> | ||
== <span style="color: purple;">'' | === <span style="color: purple;">''History dir''</span> === | ||
<div style="column-count:3;-moz-column-count:3;-webkit-column-count:3"> | <div style="column-count:3;-moz-column-count:3;-webkit-column-count:3"> | ||
* '''Type:''' STRING | * '''Type:''' STRING | ||
Line 243: | Line 272: | ||
</div> | </div> | ||
This | This key in the ODB [[#top|/Logger tree]] is used to reassign the location of the saved [[Keys in the ODB /Logger/History subtree#/Logger/History/0/Type|MIDAS type]] history files from the default location given by the [[#Data dir |Data dir key]]. | ||
<br> | <br> | ||
Line 249: | Line 278: | ||
<br> | <br> | ||
== <span style="color: purple;">'' | === <span style="color: purple;">''Elog dir''</span> === | ||
<div style="column-count:3;-moz-column-count:3;-webkit-column-count:3"> | <div style="column-count:3;-moz-column-count:3;-webkit-column-count:3"> | ||
* '''Type:''' STRING | * '''Type:''' STRING | ||
Line 256: | Line 285: | ||
This optional key is used to reassign the location of the saved Elog files from the default location given by the [[# | This optional key in the ODB [[#top|/Logger tree]] is used to reassign the location of the saved Elog files from the default location given by the [[#Data dir |Data dir key]]. | ||
Line 263: | Line 292: | ||
<br> | <br> | ||
== <span style="color: purple;">'' | === <span style="color: purple;">''Subrun duration''</span> === | ||
<div style="column-count:3;-moz-column-count:3;-webkit-column-count:3"> | <div style="column-count:3;-moz-column-count:3;-webkit-column-count:3"> | ||
* '''Type:''' INT | * '''Type:''' INT | ||
Line 270: | Line 299: | ||
This optional key contains the duration in seconds for each [[subruns|subrun]]. After this time, a new subrun will be started by the MIDAS logger [[mlogger]]. | This optional key in the ODB [[#top|/Logger tree]] contains the duration in seconds for each [[subruns|subrun]]. After this time, a new subrun will be started by the MIDAS logger [[mlogger]]. | ||
<br> | <br> | ||
Line 277: | Line 306: | ||
== <span style="color: purple;">'' | === <span style="color: purple;">''Next subrun ''</span> === | ||
<div style="column-count:3;-moz-column-count:3;-webkit-column-count:3"> | <div style="column-count:3;-moz-column-count:3;-webkit-column-count:3"> | ||
* '''Type:''' BOOL | * '''Type:''' BOOL | ||
Line 284: | Line 313: | ||
This key allows the user to manually request a new [[subruns|subrun]]. The MIDAS logger ([[mlogger]]) will stop the present subrun and start a new one. The key | This key in the ODB [[#top|/Logger tree]] allows the user to manually request a new [[subruns|subrun]]. The MIDAS logger ([[mlogger]]) will stop the present subrun and start a new one. The key | ||
<span style="color: purple;">''Next subrun''</span> will be set false. | <span style="color: purple;">''Next subrun''</span> will be set false. | ||
Line 291: | Line 320: | ||
<br> | <br> | ||
== <span style="color: purple;">''/Logger/Channels''</span> subtree == | |||
* '''Type:''' DIR | |||
This subdirectory is created and used by the [[mlogger]] utility for data logging. See [[Keys in the ODB /Logger/Channels subtree| /Logger/Channels subtree]]. | |||
== <span style="color: purple;">''/Logger/ | <br> | ||
------ | |||
<br> | |||
== <span style="color: purple;">''/Logger/Runlog''</span> subtree == | |||
* '''Type:''' DIR | * '''Type:''' DIR | ||
Directory in the ODB [[#top|/Logger tree]] for: | |||
* [[Logging to a mySQL database or ASCII file]]: This ODB subtree will be allowed to create mySQL entries for BOR or EOR based on ODB link to any of the ODB keys or | |||
to an ASCII file. In both case, the ODB subtree will trigger recordings of BOR and/or EOR ODB links of any ODB keys into an ASCII runlog.log file. | |||
See [[Keys in the ODB /Logger/Runlog subtree| /Logger/Runlog subtree]] | |||
<br> | |||
------ | |||
<br> | |||
== <span style="color: purple;">''/Logger/History''</span> subtree == | |||
* '''Type:''' DIR | |||
This subdirectory in the [[#top|/Logger tree]] is created by the [[mlogger]] utility and used by the [[History System]]. | |||
See [[Keys in the ODB /Logger/History subtree |keys in /Logger/History subtree]] | |||
[[Category:Data Logging]] |
Latest revision as of 04:48, 11 November 2022
Links
Keys in the /Logger tree
Data dir
- Type: STRING
- Default: <Path of experiment given in exptab >
This key in the ODB /Logger tree specifies in which directory files produced by the MIDAS logger utility (mlogger) should be written.
Once mlogger is running , the key Data dir will be pointing to the location of
- the data file(s) (unless overruled by the Filename key(s) ),
- the message log file (unless overruled by Message File),
- the ODB dump files (unless overruled by ODB Dump File),
- and the optional
- elog files (unless overruled by Elog dir),
- MIDAS history files (unless overruled by History Dir)
It is preferable to use a full directory path for this key (i.e. "/home/username/online/data" rather than a relative path, such as the current directory "./"). If set to the current directory, running a client such as odbedit from a different directory will result in a second midas.log file created in that directory.
When multiple logging channels are enabled, by default, the data path for all the defined logging channels is set to the same location, given by the Data dir key. However, the data from individual logging channels can also be saved in different locations, using the ODB key /Logger/Channels/<channel-number>/Settings/Filename for each defined logging channel (channel number 0,1...).
The Filename key for each enabled logging channel can contain the full path of the location of the .mid, .ybs, .asc data file.
If the latter key contains the full directory path (i.e. contains the OS specific DIR_SEPARATOR (e.g. "/" for Linux or "\" for Windows), then the global key Data dir will be overruled by the setting for that particular channel.
For example,
- If key Filename contains "run%05.mid". key Data dir will not be overruled
- If key Filename contains "/data1/ch1log/run%05.mid". key Data dir will be overruled
Message dir
- Type: STRING
- Default: ""
This key was introduced in August 2020. It specifies the directory in which MIDAS Message log files will be stored. If this ODB entry is empty, the same directory as specified in Data dir will be used.
Message file date format
- Type: STRING
- Default: ""
This key was introduced in August 2020. It specifies a date-based suffix to be used when creating MIDAS Message log files (e.g. if you want to automatically create a new log file every year, you could specify "%Y" as the format. Any format specifiers recognised by strftime may be used.
If this key is empty, the full filenames used are "<message_dir>/<facility>.log", where the facility is normally midas.
If this key is not empty, the full filenames used are "<message_dir>/<facility>_<date_based_suffix>.log". E.g. if the specified format is %Y, files will be created named midas_2020.log, midas_2021.log etc. If one wants one message file per day, one could use %y%m%d, which produces midas_200810.log, midas_200811.log, etc.
Message File (obsolete)
- Type: STRING
- Default: "midas.log"
This key was replaced by the Message dir and Message file date format keys in August 2020. Before then, it was used to specify the filename of the MIDAS Message log file .
Auto restart
- Type: BOOL
- Default: "n"
When this key in the ODB /Logger tree is set to "y" (i.e. TRUE), a new run is automatically restarted when the previous run has been stopped by the MIDAS logger (mlogger) due to an event or byte limit.
Auto restart delay
- Type: INT
- Default: 0
Providing Auto restart key is set TRUE, the automatic start of the next run will be delayed by the number of milliseconds specified by this key in the ODB /Logger tree.
Run duration
- Type: INT
- Default: 0
This key in the ODB /Logger tree allows for runs with a certain duration. To use this option, the user creates and sets this variable to a non-zero integer value (in seconds). After a run has lasted for this duration, it will be stopped automatically by the MIDAS logger (mlogger). To automatically produce sequences of runs all with the same duration, also set the
/Logger/Auto restart key to "y"
Write data
- Type: BOOL
- Default: "y"
Data logging is enabled when this key in the ODB /Logger tree is set to "y". It can be set to "n" (FALSE) temporarily to make a short test run without data logging.
This key is a predefined key for enabling data logging.
Note that the Active key (in the appropriate logging channel subtree ) must also be set to "y" for the data from that channel to be logged.
ODB Dump
- Type: BOOL
- Default: "n"
If this key in the ODB /Logger tree is set to "y", a dump of the complete ODB will be written to the file specified by the key ODB Dump file at the end of each run.
- NOTE
- The ODB contents is always saved into a file (default is "last.json") at the beginning of each run regardless of the setting of this key. The format is specified by the Keys in the ODB /Logger/Channels subtree#ODB dump format key.
- The ODB contents can also be saved into the data stream as an event (see ODB Dump per logging channel).
ODB Dump File
- Type: STRING
- Default: "run%05d.json"
This key in the ODB /Logger tree specifies the filename in which the dump of the complete ODB will be
written at the end of each run if the #ODB Dump key is set to "y". The default for the format of the file
is now json (since March 2019). Previously it was "run%05d.odb", with the format being xml by default.
If this filename contains a "%", the "%" will be replaced by the current run number (cf. format string of printf() C function). The format specifier "%05d" from the example would be evaluated to a five digit run number with leading zeros e.g. run00002.json. The ODB dump file can be used for off-line analysis to check run parameters etc. (See also ODB Dump per logging channel).
- Note: The location of the ODB dump files can also be specified in this field. If the ODB Dump File string contains a DIR_SEPARATOR, it is considered as an absolute path. If no DIR_SEPARATOR is present, the dump file will be written to the location given by Data dir key.
ODB Last Dump File
- Type: STRING
- Default: "last.json"
This key in the ODB /Logger tree contains the filename of the odb dump file last saved. It is always saved, independent of the setting of the key #ODB Dump.
WriteFileHistory
- Type: BOOL
- Default: "y"
This key in the ODB /Logger tree is obsolete. Use Active key instead.
Tape message
- Type: BOOL
- Default: "n"
If this key in the ODB /Logger tree is set to "y", MIDAS messages during mounting tapes and writing of EOF marks are generated. This can be useful all users in a counting house to be informed about the tape status.
ODBC Debug (obsolete)
- Type: INT
- Default: 0
This key in the ODB /Logger tree is now obsolete. It has been replaced by Debug key.
ODBC DSN (obsolete)
- Type: STRING
- Default:
This key in the ODB /Logger tree is now obsolete. It has been replaced by Writer_ODBC_DSN key.
History dir
- Type: STRING
- Default:
This key in the ODB /Logger tree is used to reassign the location of the saved MIDAS type history files from the default location given by the Data dir key.
Elog dir
- Type: STRING
- Default:
This optional key in the ODB /Logger tree is used to reassign the location of the saved Elog files from the default location given by the Data dir key.
Subrun duration
- Type: INT
- Default: 0
This optional key in the ODB /Logger tree contains the duration in seconds for each subrun. After this time, a new subrun will be started by the MIDAS logger mlogger.
Next subrun
- Type: BOOL
- Default: "n"
This key in the ODB /Logger tree allows the user to manually request a new subrun. The MIDAS logger (mlogger) will stop the present subrun and start a new one. The key
Next subrun will be set false.
/Logger/Channels subtree
- Type: DIR
This subdirectory is created and used by the mlogger utility for data logging. See /Logger/Channels subtree.
/Logger/Runlog subtree
- Type: DIR
Directory in the ODB /Logger tree for:
- Logging to a mySQL database or ASCII file: This ODB subtree will be allowed to create mySQL entries for BOR or EOR based on ODB link to any of the ODB keys or
to an ASCII file. In both case, the ODB subtree will trigger recordings of BOR and/or EOR ODB links of any ODB keys into an ASCII runlog.log file.
/Logger/History subtree
- Type: DIR
This subdirectory in the /Logger tree is created by the mlogger utility and used by the History System.