UNPKG

@athenna/logger

Version:

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

15 lines (14 loc) 454 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 MessageFormatter extends Formatter { format(message) { return this.clean(`${this.messageLevel()} - (${this.pid()}) - (${this.hostname()}): ${this.toString(message)}`); } }