import chalk from 'chalk' ; import { LogRecord } from '@osd/logging' ; import { Conversion } from './type' ; export const LoggerConversion = { pattern : /%logger/g , convert ( record , highlight ) { let message = record . context ; if ( highlight ) { message = chalk . magenta ( message ) ; } return message ; } , } ;