UNPKG

@athenna/logger

Version:

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

16 lines (15 loc) 433 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 CliFormatter extends Formatter { format(message) { const level = this.cliLevel(); return this.clean(`${level} ${this.toString(message)}`); } }