# Kiwiplan - KIDSENV Settings

MAXPROC=999

TERM=vt100

KIDSLOGDIR=$PLANT/tmp  
KIDSLOGMAX=1000000  
KIDSLOGLEVEL=-4

The `KWSQL_LOG` variable is a system-level setting in Kiwiplan that controls logging options for the SQL interface, although ISAM can also utilize these logs. It allows you to specify the log level, which can be one of the following:

- **all**: Logs everything.
- **error**: Logs only errors.
- **warn**: Logs warnings and errors.
- **query**: Logs queries, warnings, and errors.
- **info**: Logs informational messages.
- **none**: Disables logging entirely.

For example, setting the log level to `error` will only display errors, while setting it to `query` will display queries, warnings, and errors  
KWSQL\_LOG=query

<span data-teams="true">The `KWLOCK_TIME_LOG` variable is a system-level diagnostic setting in Kiwiplan. It causes the application to abort if a lock remains active for a specified number of seconds  
</span>KWLOCK\_TIME\_LOG=15

<span data-teams="true">The `KWLOCK_TIME_COUNT` variable is a system-level diagnostic setting in Kiwiplan. It causes the application to abort if a lock remains active for a specified number of iteration counts</span>  
KWLOCK\_TIME\_COUNT=15

<span data-teams="true">The `KIWI_NO_CATCH_HUP` variable is a system-level setting in Kiwiplan that turns off the catching of HUP (hangup) signals. This means the application will not handle or respond to HUP signals when this variable is specified. </span>This one if for MDC that keeps shutting down  
export KIWI\_NO\_CATCH\_HUP=1  
  
<span data-teams="true">The `KIWI_LOCK_NOPID` variable is a system-level setting in Kiwiplan that forces the process ID to be written to the lock file when a process locks a file. However, it comes with a warning that setting this variable can affect performance. </span>This one is for the lock files  
export KIWI\_LOCK\_NOPID=1  
GEN/IN use lock monitor N