import { LogRecord } from '@kbn/logging' ; import { Conversion } from './type' ; export const MessageConversion = { pattern : /%message/g , convert ( record ) { return ( record . error && record . error . stack ) || record . message ; } , } ;