/Logger ODB tree: Difference between revisions

From MidasWiki
Jump to navigation Jump to search
No edit summary
(The midas documentation has moved to https://midas.triumf.ca/docs/)
Tag: Replaced
 
(12 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: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.
 
=== Purpose  ===
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 [[Messaging]] system.  
The <span style="color:purple; font-style:italic;">/Logger</span>  tree also may contain optional subdirectories  relevent to storing the History and Elog data files (i.e. the
[[/Logger/Elog]] and [[/Logger/History]] subdirectories. The optional subtree [[/Logger/SQL]] is described in the section mySQL database. The ODB  
<span style="color:purple; font-style:italic;">/History</span>  tree is described in the section [[History Logging]] and the the ODB  <span style="color:purple; font-style:italic;">/Elog</span> tree in the [[Elog]] section.
 
=== Example  ===
The following example shows a typical <span style="color:purple; font-style:italic">/Logger</span>  ODB tree obtained using the [[odbedit]] '''ls''' command. 
 
See [[Explanation of Keys in the ODB /Logger tree]] or click on a key for more information.
 
  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
      WriteFileHistory            y
      ODBC_Debug                  0
      ODBC_DSN
      Run duration                0
      Next subrun                n
      Subrun duration            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.