UNPKG

kibana-123

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) 333 B
import LogFormat from './log_format'; import stringify from '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); } };