Logging to a ASCII file

From MidasWiki
Revision as of 05:07, 11 November 2022 by Pierre (talk | contribs) (Created page with "{{Pagelinks}} ==== Links ==== <div style="column-count:3;-moz-column-count:3;-webkit-column-count:3"> * ODB /Logger tree * keys in the...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


Links



The MIDAS logger (mlogger) is able to record information in an ASCII file.

Under two dedicated subdirectories Links BOR and Links EOR , predefined links exist which will be used at begin-of-run (BOR) and end-of-run (EOR) respectively for storing parameter values into the database. These elements are ODB links allowing the user to extend the list with any parameter in the ODB database. This logger mySQL option may replace or complement the runlog.txt functionality of the ana_end_of_run() function from the analyzer.c.

The following example shows a /Logger/Runlog/SQL tree as created by mlogger. See ODB /Logger/Runlog/SQL subtree for an explanation of the meaning of each key.

Example /Logger/Runlog/SQL subtree

[local:midas:S]/Runlog>ls -lr SQL
Key name                        Type    #Val  Size  Last Opn Mode Value
---------------------------------------------------------------------------
SQL                         DIR
   Create database             BOOL    1     4     27s  0   RWD  n
   Write data                  BOOL    1     4     27s  0   RWD  n
   Hostname                    STRING  1     80    27s  0   RWD  localhost
   Username                    STRING  1     80    27s  0   RWD  root
   Password                    STRING  1     80    27s  0   RWD
   Database                    STRING  1     32    27s  0   RWD  midas
   Table                       STRING  1     80    27s  0   RWD  Runlog
   Logfile                     STRING  1     80    27s  0   RWD  sql.log
   Links BOR                   DIR
       Run number              LINK    1     20    58s  0   RWD  /Runinfo/Run number
       Start time              LINK    1     20    58s  0   RWD  /Runinfo/Start time
   Links EOR                   DIR
       Stop time               LINK    1     19    4m   0   RWD  /Runinfo/Stop time