prettycli icon indicating copy to clipboard operation
prettycli copied to clipboard

Feature Request: Add RHS timestamp support

Open subodhpareek18 opened this issue 8 years ago • 3 comments

I am using https://github.com/jaredpalmer/backpack for my backend server and it internally uses the really nice https://github.com/geowarin/friendly-errors-webpack-plugin/

So I looked around and found this package that looks very similar, except for a couple of differences. The one I'm talking about here is to be able to show the timestamp cleanly on the RHS side.

Have added a screenshot below where the first two logs come from the webpack setup and the latter from my custom logger built with prettycli. Is there a way we can support this where the timestamp can either be provided (so that the timestamp remains on the logs if stored) or else can be generated by this lib by default.

image

subodhpareek18 avatar Jan 19 '18 08:01 subodhpareek18

prettycli isn't smart enough to match loading and successful messages right now 😛

I'm happy to accept a PR that adds support

siddharthkp avatar Jan 20 '18 07:01 siddharthkp

Sorry, didn't understand the loading and successful message bit.

I'm just talking about console.log with some data on the RHS (not sure how that is to be done). I'd be happy to make a PR but I do not know how to achieve this placement of text on RHS of the console.

subodhpareek18 avatar Jan 20 '18 09:01 subodhpareek18

I'd suggest reading the source of friendly-errors-webpack-plugin to find out how do they do it (I'm assuming that's where you saw this feature)

siddharthkp avatar Jan 20 '18 13:01 siddharthkp