====== JSexec Configuration ======

The optional ''[[dir:ctrl]]/jsexec.ini'' file contain the following:

In the //root// section, in addition to the standard [[JavaScript]] settings:

^Key            ^Default Value   ^Possible Values                     ^Description      ^
|''LogLevel''   |''INFO''        |See [[INI Files#Enumerated Values]] |Minimum severity for log entries |
|''ErrorLevel'' |''ERROR''       |See [[INI Files#Enumerated Values]] |Log level to use for error messages |
|''Debugger''   |''false''       |true/false                          |Enable the debugger |
|''PauseOnExit''  | ''false''    |true/false                          |Wait for keypress upon exit|
|''PauseOnError'' | ''false''    |true/false                          |Wait for keypress upon abnormal exit (error)|
|''umask''        | //none//     |                                    |File creation permissions/mode mask |
|''AutoTerminate''| ''true''     |true/false                          |Automatically terminate script when aborted locally |

===== Module-specific Settings =====

Additionally, if there is a section named after the module being executed, any keys set in that section will over-ride the global options set in the //root// section. i.e. ''jsexec mymodule.js'' will allow any settings in the ''[mymodule]'' section of ''jsexec.ini'' to over-ride the global/root settings.

The module-specific section can be named with either the path and filename of the script (e.g. ''[path/to/mymodule.js]'') or just the base filename of the script (e.g. ''[mymodule]''). The path/filename section, if it exists, will take precedence over the base filename section.
===== See Also =====
  * [[:config:|config index]]


{{tag>configuration javascript general_config ini}}
