A Simple Browser Logger Tool in the Web Console | pretty-browser-log

PrettyLog is a simple browser logger(recording) tool. It’s wrapped from console.log to make it easier. Pretty Log is a JavaScript library to replace the console.log () function that applies custom styles for the log tags (labels) and messages displayed in the web console.

browser console chrome, console log not working in chrome, chrome console log to file, firefox web console, chrome developer tools, firefox console commands


  • Maintains a registered code line number.
  • Label styled
  • Text message
  • Turn on and off
  • I collect new patterns

How to make use of it:

1. Install the PrettyLog with NPM.

$ npm i pretty-browser-log --save

2. Import the PrettyLog.

import {prettyLog} from './src/prettylog.js';
export {prettyLog};
import {prettyLog as log} from './index.js'

3. Create your individual themes by making use of customized CSS styles to logs.

  {name:'noLabel',badge:'',badgeStyle:'border: 0',messageStyle:'color:#4CD964; border: 1px solid;border-radius:0.4rem;padding:2px 6px'},
  {name:'dot',badge:'  ',badgeStyle:'background-color:orange ;border-radius:50%',messageStyle:''},
  // ...

4. Display logs with totally different styles within the browser console.

// default
log.msg('Log Messages Here');

// title theme
log.title('Log Messages Here');

// danger theme
log.danger('Log Messages Here');

// success theme
log.success('Log Messages Here');

// action theme
log.action('Log Messages Here');

// todo theme
log.todo('Log Messages Here');

// with no label
log.noLabel('Log Messages Here');

// dot themes
log.dot('Log Messages Here');

Display Logs In Web Console, console log in javascript, chrome browser console logs, Pretty Log Plugin/Github, firefox console log to file, what is a browser console

See Demo And Download

Official Website(ianes1978): Click Here

This superior jQuery/javascript plugin is developed by ianes1978. For extra advanced usage, please go to the official website.

Related Posts


Responsive Drag and Drop File Uploader/Download Plugin | 5x5_jq_uploader

5x5_jq_uploader plugin can be used to instantly create a drop file area and file queue with a little bit of preparation. Bootstrap is used for responsive planning…


Stylesheet For Implementing Dark Mode with Bootstrap

Bootstrap Dark Mode provides a style sheet and two texts that allow you to implement Dark Mode on your website. Initially loaded based on user preferences, can…


Multi-purpose Navigation Menu for Javascript Library | jQuery Corenav

coreNavigation is a multipurpose navigation menu for a jquery based javascript library, comes with more style, and is easy to integrate. 11 Default Menu 2 Responsive Navigation…


Simple Multi-Select Dropdown Pure Vanilla Javascript | multiSelect.js

MultiSelect.js is a simple, clean, and progressive JavaScript library designed for easy integration with any type of project or system. The design was heavily influenced by the…


Confetti Falling Animation Effect In JavaScript | party.js

Party.js is a JavaScript library to brighten user site experience with visual effects! Celebrate success with dom confetti! The library is written in TypeScript and compiled into…


How To Create A Popup in HTML with CSS

How to create popup in html with css – Popup without JavaScript is an elegant pop-up panel component with an animated scale, written in CSS. Have you…