How to Make Fancy Console Logs

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 :)

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store