/Logger ODB tree: Difference between revisions

From MidasWiki
Jump to navigation Jump to search
(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...")
 
(The midas documentation has moved to https://midas.triumf.ca/docs/)
Tag: Replaced
 
(13 intermediate revisions by 2 users not shown)
Line 1: Line 1:
=== Creating the /logger tree ===
The midas documentation has moved. See [https://midas.triumf.ca/docs/develop/reference/reference/odb_keys/#logger /Logger] on the ODB keys page and [https://midas.triumf.ca/docs/develop/features/storing_data/data_logging/ Data logging: overview] for the new documentation about the /Logger ODB keys.
The <span style="color:fuchsia font-style:italic">/logger</span>  ODB tree is created when the [[mlogger|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 <span style="color:fuchsia">/logger</span>  ODB tree are used to '''customize logging''' of the data. There are also keys to customize the Messaging system.
The <span style="color:fuchsia">/logger</span> 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 <span style="color:fuchsia">//Elog Tree in the Elog section.
 
=== Example  ===
The following example shows a <span style="color:fuchsia">/logger</span> 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

Latest revision as of 22:00, 30 October 2026

The midas documentation has moved. See /Logger on the ODB keys page and Data logging: overview for the new documentation about the /Logger ODB keys.