react-logviewer icon indicating copy to clipboard operation
react-logviewer copied to clipboard

Line formatter

Open WillDaSilva opened this issue 1 year ago • 1 comments

Currently we can use formatPart to apply formatting to the "parts" of each line, which seems to be split on whitespace. This seems less useful than providing a formatLine option, since if you are in a line format function, you can always split on whitespace and format each of those segments on their own.

In my case each line of my logs is a JSON object, and I'd like to be able to have a formatLine function that parses each of the JSON objects (along with a checkbox to toggle whether this formatting should be done, but that's beyond the scope of this issue).

WillDaSilva avatar Aug 29 '24 20:08 WillDaSilva

Similar to this request: https://github.com/melloware/react-logviewer/issues/30

But PR is welcome if you want to add this behavior!

melloware avatar Aug 29 '24 20:08 melloware