|
1 | 1 | .. _Scheduler Logs:
|
| 2 | +.. _user-guide.log_files: |
2 | 3 |
|
3 |
| -Scheduler Logs |
4 |
| --------------- |
| 4 | +Workflow Logs |
| 5 | +============= |
| 6 | + |
| 7 | +Cylc produces log files which record information about how the workflow was |
| 8 | +installed, configured when started or changed, and about tasks that have run |
| 9 | +and their outcomes. |
| 10 | + |
| 11 | + |
| 12 | +Log Files |
| 13 | +--------- |
| 14 | + |
| 15 | +Cylc log files are located in the workflow :term:`run directory`. |
| 16 | + |
| 17 | +.. describe:: log/scheduler/ |
| 18 | + |
| 19 | + Contains the scheduler log files, these detail everything that a workflow |
| 20 | + did whilst it ran and are key to debugging issues. |
| 21 | + |
| 22 | + Every time you start or restart a workflow a new log file is created in this |
| 23 | + location: |
| 24 | + |
| 25 | + .. describe:: log/scheduler/<start_number>-<type>-<file_number>.log |
| 26 | + |
| 27 | + For more information on this file, see :ref:`log_files.scheduler_log`. |
| 28 | + |
| 29 | +.. describe:: log/config/ |
| 30 | + |
| 31 | + Contains a record of the workflow configuration files: |
| 32 | + |
| 33 | + .. describe:: log/config/<start_number>-<type>-<file_number>.cylc |
| 34 | + |
| 35 | + The parsed contents of the ``flow.cylc`` (or ``suite.rc``) file from |
| 36 | + each start, restart or reload of the workflow. |
| 37 | + |
| 38 | + .. describe:: log/config/flow-processed.cylc |
| 39 | + |
| 40 | + The unparsed contents of the ``flow.cylc`` (or ``suite.rc``) file that |
| 41 | + the workflow was most recently started or restarted from. This file has |
| 42 | + not been parsed by Cylc so is still in the definition order, however, |
| 43 | + Jinja2 process has been performed making it useful for debugging Jinja2 |
| 44 | + issues. |
| 45 | + |
| 46 | + .. describe:: log/config/<time>-rose-suite.conf |
| 47 | + |
| 48 | + The parsed contents of the ``rose-suite.conf`` file if present in the workflow. |
| 49 | + |
| 50 | +.. describe:: log/install/ |
| 51 | + |
| 52 | + Contains the workflow installation log (i.e. the output of the |
| 53 | + ``cylc install`` command. |
| 54 | + |
| 55 | + .. describe:: log/install/<start_number>-install.log |
| 56 | + |
| 57 | +.. describe:: log/remote-install/ |
| 58 | + |
| 59 | + Contains a record of any remote platforms that the workflow has been |
| 60 | + installed onto. |
| 61 | + |
| 62 | + .. describe:: log/remote-install/<start_number>-<type>-<platform>.log |
| 63 | + |
| 64 | +.. describe:: log/version/ |
| 65 | + |
| 66 | + If the workflow :term:`source directory` is version controlled with Git or |
| 67 | + SVN, this directory will contain information extracted from the version |
| 68 | + control system at the time the workflow was installed:P |
| 69 | + |
| 70 | + .. describe:: log/version/uncommitted.diff |
| 71 | + |
| 72 | + Any uncommitted diff in unified diff format. |
| 73 | + |
| 74 | + .. describe:: log/version/vcs.json |
| 75 | + |
| 76 | + Information including the commit hash / revision number. |
| 77 | + |
| 78 | +.. describe:: opt/rose-suite-cylc-install.conf |
| 79 | + |
| 80 | + If Rose is used, this file will contain any Rose options that were used |
| 81 | + with the ``cylc install`` command (i.e. any overrides which were applied |
| 82 | + when the workflow was installed). |
| 83 | + |
| 84 | +.. note:: |
| 85 | + |
| 86 | + Where the ``<variables>`` in the above paths are: |
| 87 | + |
| 88 | + .. cylc-scope:: global.cylc[scheduler][logging] |
| 89 | + |
| 90 | + ``start_number`` |
| 91 | + Is ``1`` when you first start the workflow. This number increments with |
| 92 | + each restart. |
| 93 | + ``type`` |
| 94 | + Is either ``start``, ``restart`` or ``reload``. |
| 95 | + ``file_number`` |
| 96 | + Is initially ``1``, if the log file exceeds the `maximum size in bytes`, |
| 97 | + it will "roll over" into a new log file and this number will increment. |
| 98 | + If the number of "roll over" log files exceeds the |
| 99 | + `rolling archive length`, then Cylc will remove an old log file before |
| 100 | + creating a new one. |
| 101 | + ``time`` |
| 102 | + Is a timestamp in ISO8601 format. |
| 103 | + |
| 104 | +.. cylc-scope:: |
| 105 | + |
| 106 | + |
| 107 | +.. _log_files.scheduler_log: |
| 108 | + |
| 109 | +The Scheduler Log File |
| 110 | +---------------------- |
5 | 111 |
|
6 | 112 | Each workflow maintains its own log of time-stamped events in the
|
7 | 113 | :term:`workflow log directory` (``$HOME/cylc-run/<workflow-id>/log/scheduler/``).
|
|
0 commit comments