UNPKG

bajo

Version:

The ultimate framework for whipping up massive apps in no time

37 lines (34 loc) 3.84 kB
# Config Object The following table shows the default app settings. To change these to suit your needs, please refer to [Getting Started](GETTING-STARTED.md) | Key Name | Type | Default | Description | | ------- | ---- | ----- | ----------- | | ```log``` | ```object``` | | | |     ```dateFormat``` | ```string``` | ```YYYY-MM-DDTHH:MM:ss.SSS[Z]```| See [dayjs string & format](https://day.js.org/docs/en/parse/string-format) for more info | |     ```timeTaken``` | ```boolean``` | ```false```| Show time taken from previous activity in ms | |     ```useUtc``` | ```boolean``` | ```false```| Use UTC, defaults: local date/time | |     ```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](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat) 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``` |