with( message: preg_replace_callback( '/(?:(?normalize($record->message) ) ); //endregion //region Format the record $output = parent::format($record); //endregion //region Remove newlines at end (introduced by context, extra or record message itself) $output = preg_replace('/(?:(?