Config Object
The following table shows the default app settings. To change these to suit your needs, please refer to Getting Started
Key Name | Type | Default | Description |
---|---|---|---|
log | object | ||
dateFormat | string | YYYY-MM-DDTHH:MM:ss.SSS[Z] | 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 |
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 |
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 |