UNPKG

@athenna/logger

Version:

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

18 lines (17 loc) 487 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 { Formatter } from '#src/formatters/Formatter'; export class NoneFormatter extends Formatter { format(message) { if (this.configs.withoutParsers) { return message; } return this.clean(this.applyColorsByChalk(this.toString(message))); } }