UNPKG

@athenna/logger

Version:

The Athenna logging solution. Log in stdout, files and buckets.

21 lines (20 loc) 684 B
/** * @athenna/logger * * (c) João Lenon <lenon@athenna.io> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ import { Options } from '@athenna/common'; export class FactoryHelper { /** * Group the configuration values. */ static groupConfigs(object, defaultValue) { const formatter = object.formatter || defaultValue.formatter; const formatterConfig = Options.create(object.formatterConfig, defaultValue.formatterConfig); const driverConfig = Options.create(object, defaultValue); return { ...driverConfig, formatter, formatterConfig }; } }