How to Make Fancy Console Logs

Jetly Sandita
Dec 29, 2020

Let’s give your console for another purpose

Photo by Roman Synkevych on Unsplash

The console is useful for testing purposes. if you’re here, you’ll want to use a console for other purposes and wonder how to custom console. let’s give your console a makeover.

It’s very simple. you just need to add a string of styles as a second parameter and while starting the first parameter with %c. the styles will replace the %c in the logs.

Example Code

Now you can make your console for another purpose like job information.

Comment below if you know any other ways.

Thank you :)

--

--