Debugging
By default, Xill4 will not print any additional information to the console. It will only print debugging output if the DEBUG
environment variable is set to the namespace you specified.
- To enable debugging output for all namespaces, set the
DEBUG
environment variable toxill:*
. - To enable debugging output for a specific namespace, set the
DEBUG
environment variable to the name of the namespace. For example, to enable debugging output for the DB Query component,DEBUG=xill:component:db-query
. - To enable debugging output for multiple namespaces, separate them with a comma. For example,
DEBUG=xill:component:db-query,xill:service:sql
- To disable debugging output for a specific namespace, prefix the namespace name with a -. For example, to disable debugging output for the auth namespace,
DEBUG=-xill:component:db-query
.
note
Using wildcards might flood your console with a lot of debug logging and should be used with care.
List of namespaces
Namespace | Description |
---|---|
xill:component:* | Debugging output for all components, replace the asterisk(_) for a component name to debug a specific component |
xill:main | Debugging output for the main Xill4 process |
xill:license | Debugging output for the license |
xill:service:_ | Debugging output for all services, replace the asterisk(*) for a service name to debug a specific service |
xill:base:_ | Debugging output for all base functionality, replace the asterisk(_) for a base name to debug a specific base functionality |