/Logger ODB tree

From MidasWiki
Revision as of 15:47, 2 August 2013 by Suz (talk | contribs) (Created page with "=== Creating the /logger tree === The <span style="color:fuchsia font-style:italic">/logger</span> ODB tree is created when the mlogger utility is started for the...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Creating the /logger tree

The /logger ODB tree is created when the mlogger utility is started for the first time. The keys will be filled with default values which users may change as required to customize their experiments.

Purpose

Most of the keys in the /logger ODB tree are used to customize logging of the data. There are also keys to customize the Messaging system. The /logger tree also may contain optional subdirectories relevent to storing the History and Elog data files (i.e. the /logger/Elog Dir and /logger/History Dir subdirectories. The optional subtree /Logger/SQL is described in the section mySQL database. The ODB /History tree is described in the section History Logging . and the the ODB //Elog Tree in the Elog section.

Example

The following example shows a /logger ODB tree as created by mlogger. See also Explanation of the keys in the ODB /Logger tree .

Key name Type #Val Size Last Opn Mode Value


Logger DIR

   Data dir                    STRING  1     256   4h   0   RWD  /home/midas/online
   Message file                STRING  1     256   22h  0   RWD  midas.log
   Write data                  BOOL    1     4     2h   0   RWD  y
   ODB Dump                    BOOL    1     4     22h  0   RWD  n
   ODB Dump File               STRING  1     256   22h  0   RWD  run%05d.odb
   Auto restart                BOOL    1     4     22h  0   RWD  n
   Auto restart delay          INT     1     4     94h  0   RWD  0
   Tape message                BOOL    1     4     15h  0   RWD  y
   ODBC_Debug                  INT     1     4     >99d 0   RWD  0
   ODBC_DSN                    STRING  1     256   >99d 0   RWD
   Channels                    DIR
       0 
           Settings            DIR
               Active          BOOL    1     4     1h   0   RWD  y
               Type            STRING  1     8     1h   0   RWD  Disk
               Filename        STRING  1     256   1h   0   RWD  run%05d.mid
               Format          STRING  1     8     1h   0   RWD  MIDAS
               Compression     INT     1     4     94h  0   RWD  0
               ODB Dump        BOOL    1     4     1h   0   RWD  y
               Log messages    DWORD   1     4     1h   0   RWD  0
               Buffer          STRING  1     32    1h   0   RWD  SYSTEM
               Event ID        INT     1     4     1h   0   RWD  -1
               Trigger Mask    INT     1     4     1h   0   RWD  -1
               Event limit     DWORD   1     4     1h   0   RWD  0
               Byte limit      DOUBLE  1     8     1h   0   RWD  0
               Subrun Byte limiDOUBLE  1     8     >99d 0   RWD  0
               Tape capacity   DOUBLE  1     8     1h   0   RWD  0
               Subdir format   STRING  1     32    7h   0   RWD
               Current filenameSTRING  1     256   7h   0   RWD
                 
           Statistics          DIR
               Events written  DOUBLE  1     8     1h   0   RWD  0
               Bytes written   DOUBLE  1     8     1h   0   RWD  0
               Bytes written toDOUBLE  1     8     1h   0   RWD  0
               Files written   INT     1     4     1h   0   RWD  0