On this page
Config Object
Default application settings are listed below. For customization instructions, please refer to Getting Started
| Key Name | Type | Default | Description |
|---|---|---|---|
log | object | ||
dateFormat | string | YYYY-MM-DDTHH:MM:ss.SSS | See dayjs string & format for more info |
timeTaken | boolean | false | Show time taken from previous activity in ms |
localDate | boolean | false | Use local date, defaults: UTC |
pretty | boolean | false | Colorful, pretty styling |
applet | boolean | false | Show log even in applet mode |
save | boolean | false | Save log in ‘{dataDir}/log’ |
rotation | object | Log rotation config if save is true | |
cycle | string | none | Available values: none, daily, weekly, monthly |
compressOld | boolean | false | Set to true to compress old logs |
byPlugin | boolean | false | Split log by plugin’s name |
retain | integer | 5 | How many old logs will be kept/retained |
lang | string | Auto detected | Valid language code e.g: ’en-US’, ‘id’, etc. |
intl | object | Internationalization settings | |
supported | array | ['en-US', 'id'] | Supported languages |
fallback | string | en-US | Language to use if the selected one isn’t valid |
format | object | ||
emptyValue | string | '' | Value to use if value is null or undefined |
datetime | object | { dateStyle: 'medium', timeStyle: 'short' } | See this link for more info |
date | object | { dateStyle: 'medium' } | See above |
time | object | { dateStyle: 'short' } | See above |
float | object | { maximumFractionDigits: 2 } | See above |
double | object | { maximumFractionDigits: 5 } | See above |
smallint | object | {} | See above |
integer | object | {} | See above |
unitSys | object | Add new language if necessary. If not specified, value defaults to metric. Accepted values: imperial, metric, nautical | |
en-US | string | imperial | |
id | string | metric | |
exitHandler | boolean | true | If false, no graceful shutdown |
env | string | dev | Acceptable values: dev, or prod |