UNPKG

@spalger/kibana

Version:

Kibana is an open source (Apache Licensed), browser based analytics and search dashboard for Elasticsearch. Kibana is a snap to setup and start using. Kibana strives to be easy to get started with, while also being flexible and powerful, just like Elastic

14 lines (11 loc) 338 B
let LogFormat = require('./LogFormat'); let stringify = require('json-stringify-safe'); let stripColors = function (string) { return string.replace(/\u001b[^m]+m/g, ''); }; module.exports = class KbnLoggerJsonFormat extends LogFormat { format(data) { data.message = stripColors(data.message); return stringify(data); } };