/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...")
 
No edit summary
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Pagelinks}}
=== Links ===
<div style="column-count:3;-moz-column-count:3;-webkit-column-count:3">
* [[Keys in the ODB /Logger tree| keys in /Logger tree]]
* [[Keys in the ODB /Logger/Channels subtree |keys in /Logger/Channels subtree]]
* [[Keys in the ODB /Logger/SQL subtree |keys in /Logger/SQL subtree]]
* [[Keys in the ODB /Logger/History subtree |keys in /Logger/History subtree]]
* [[/History ODB tree|/History tree]]
* [[mlogger |MIDAS logger utility (mlogger)]]
</div>
=== Creating the /logger tree ===
=== Creating the /logger tree ===
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.
The <span style="color:purple; font-style:italic">/Logger</span>  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. See [[keys in the ODB /Logger tree]] for more information on each key.  


=== Purpose  ===
=== 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.  
Most of the keys in the <span style="color:purple; font-style:italic;">/Logger</span>  ODB tree are used to '''customize logging''' of the data. There are also keys to customize the [[Message System |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
The <span style="color:purple; font-style:italic;">/Logger</span> tree also may contain optional keys
[[/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.
[[Keys in the ODB /Logger tree #/Logger/Elog dir|/Logger/Elog dir ]] and [[Keys in the ODB /Logger tree #/Logger/History dir |/Logger/History dir]]
relevent to storing the [[History System | History]] and [[Elog]] data files.  
 
The optional subtree [[Keys in the ODB /Logger/SQL subtree|/Logger/SQL]] is used when [[logging to a mySQL database]].  


=== Example  ===
=== 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 .
The following example shows a typical <span style="color:purple; font-style:italic">/Logger</span> ODB tree obtained using the [[odbedit]] '''ls''' command.
See [[keys in the ODB /Logger tree]] for more information on each key.
 
  ODB Key name                    Value
  ---------------------------------------------------------------------------
  Logger
      Data dir                    /isdaq/data1/midas/dlog/current
      Message file                midas.log
      Write data                  y
      ODB Dump                    y
      ODB Dump File              %06d.odb
      Auto restart                n
      Tape message                y
      Channels
          0
              Settings
                  Active            n
                  Type              Disk
                  Filename          %06d.mid
                  Format            MIDAS
                  Compression      0
                  ODB dump          n
                  Log messages      0
                  Buffer            SYSTEM
                  Event ID          -1
                  Trigger mask      -1
                  Event limit      0
                  Byte limit        0
                  Subrun Byte limit 0
                  Tape capacity    0
                  Subdir format
                  Current filename  030300.mid
              Statistic
                  Events written                  60
                  Bytes written                  101864
                  Bytes written uncompressed      101864
                  Bytes written total            8166648992
                  Bytes written subrun            98304
                  Files written                  427
                  Disk level                      0.714018533478346
      Elog Dir                    /isdaq/data1/midas/elog
      Auto restart delay          0
      SQL
          Create database        n
          Write data              n
          Hostname                localhost
          Username                root
          Password
          Database                midas
          Table                  Runlog
          Logfile                sql.log
          Links BOR
              Run number -> /Runinfo/Run number
                                30300
              Start time -> /Runinfo/Start time
                                Fri Jul 26 17:53:03 2013
          Links EOR
              Stop time -> /Runinfo/Stop time
                                Fri Jul 26 18:16:58 2013
      Run duration                0
      Next subrun                n
      Subrun duration            0
 
== Keys in the /Logger tree ==
Click on the following links for description of the
* [[Keys in the ODB /Logger tree|keys in the /Logger tree]]
* [[Keys in the ODB /Logger/Channels subtree |keys in /Logger/Channels subtree]]
* [[Keys in the ODB /Logger/SQL subtree |keys in /Logger/SQL subtree]]
* [[Keys in the ODB /Logger/History subtree |keys in /Logger/History subtree]]


Key name                        Type    #Val  Size  Last Opn Mode Value
[[Category:ODB Tree]] [[Category:Data Logging]]
---------------------------------------------------------------------------
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

Revision as of 13:48, 8 July 2015


Links

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. See keys in the ODB /Logger tree for more information on each key.

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 keys /Logger/Elog dir and /Logger/History dir relevent to storing the History and Elog data files.

The optional subtree /Logger/SQL is used when logging to a mySQL database.

Example

The following example shows a typical /Logger ODB tree obtained using the odbedit ls command. See keys in the ODB /Logger tree for more information on each key.

  ODB Key name                    Value
  ---------------------------------------------------------------------------
  Logger
     Data dir                    /isdaq/data1/midas/dlog/current
     Message file                midas.log
     Write data                  y
     ODB Dump                    y
      ODB Dump File               %06d.odb
     Auto restart                n
     Tape message                y
     Channels
         0
             Settings
                 Active            n
                 Type              Disk
                 Filename          %06d.mid
                 Format            MIDAS
                 Compression       0
                 ODB dump          n
                 Log messages      0
                 Buffer            SYSTEM
                 Event ID          -1
                 Trigger mask      -1
                 Event limit       0
                 Byte limit        0
                 Subrun Byte limit 0
                 Tape capacity     0
                 Subdir format
                 Current filename  030300.mid
             Statistic
                 Events written                  60
                 Bytes written                   101864
                 Bytes written uncompressed      101864
                 Bytes written total             8166648992
                 Bytes written subrun            98304
                 Files written                   427
                 Disk level                      0.714018533478346
     Elog Dir                    /isdaq/data1/midas/elog
     Auto restart delay          0
     SQL
         Create database         n
         Write data              n
         Hostname                localhost
         Username                root
         Password
         Database                midas
         Table                   Runlog
         Logfile                 sql.log
         Links BOR
             Run number -> /Runinfo/Run number
                               30300
             Start time -> /Runinfo/Start time
                               Fri Jul 26 17:53:03 2013
         Links EOR
             Stop time -> /Runinfo/Stop time
                               Fri Jul 26 18:16:58 2013
     Run duration                0
     Next subrun                 n
     Subrun duration             0

Keys in the /Logger tree

Click on the following links for description of the