log | object | | |
dateFormat | string | YYYY-MM-DDTHH:MM:ss.SSS[Z] | See dayjs string & format for more info |
plain | boolean | false | No color, simple styling |
applet | boolean | false | Activate 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 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 | | Enter new key-value for specific language. 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 , staging , prod |
silent | boolean | false | If false , suppress all messages. Incl. app log |