jQuery Plugin Browser Console Logs On Webpage

jQuery Console plugin allows you to easily create a non-interactive console within a page. It can be used to output debug messages directly on the page, without the user having to open the browser console.

browser console logs chrome, browser console chrome, how to open browser console chrome, console log not working in chrome, how to see console log in chrome

How to make use of it:

1. Add jQuery library and the console.js plugin’s files to the web page.

<link rel="stylesheet" href="/path/to/dist/jquery.console.min.css" />
<script src="/path/to/cdn/jquery.min.js"></script>
<script src="/path/to/dist/jquery.console.min.js"></script>

2. Initialize the plugin on the container aspect the place the console message is to be displayed.

<div class="consoleContainer"></div>
let instance = $(".consoleContainer").console({ 
    // options here
});

3. Output console messages with completely different ranges:

instance.log('Console Message Here', msgLevel);

4. Determine whether or to not show timestamps.

let instance = $(".consoleContainer").console({ 
    showTimestamp: true,
    timestampOnLeft: false, // right
});

5. Control whether messages are added to the top or bottom of the stack.

let instance = $(".consoleContainer").console({ 
    msgDirection: "up"
});

6. Specify the variety of console messages to keep.

let instance = $(".consoleContainer").console({ 
    history: 500
});

7. Determine the time to attend earlier than closing console messages.

let instance = $(".consoleContainer").console({ 
    timeout: 0,
    fadeOutTime: 400,
});

8. Customize the console ranges.

let instance = $(".consoleContainer").console({ 
    levels: [
      "emergency", "alert", "critical", "error",
      "warning", "notice", "info", "debug"
    ],
    defaultLevel: 6,
});

9. Determine whether or to not tag odd and even entries.

let instance = $(".consoleContainer").console({ 
    tagOddEven: true
});

Simulate Browser Console Logs On Webpage, jQuery Console Plugin/Github, chrome console log to file, ios simulator web inspector


See Demo And Download

Official Website(EatonCiaran): Click Here

This superior jQuery/javascript plugin is developed by EatonCiaran. For extra Advanced Usages, please go to the official website.

Related Posts

Iconpicker-Bootstrap-5

[Icon Picker] Iconpicker for Bootstrap 5 Icons Library

Bootstrap 5-based icon picker which supports any icon libraries like Bootstrap Icons, Font Awesome[fontawesome.com], etc. Must Read: 1000+ Pixel Perfect SVG Icons For Vue Components | Unicons How…

bootstrap-multiple-image-upload-with-preview

Bootstrap Multiple Image Upload with Preview and Delete | ImagesLoader

ImagesLoader is a standard bootstrap image upload plugin that provides an easy-to-use and nice-looking interface for uploading multiple images to a web server. Must Read: HTML 5…

Animating-Split-Flap-Displays-fallblatt

A Lightweight jQuery Plugin for Animating Split-Flap Displays | fallblatt

fallblatt is a lightweight jQuery plugin for animating split screens. This jQuery plugin allows you to include such offers in your web application. Everything from virtual departure…

bootstrap-5-dark-theme

Dark & Light Switch Mode Toggle for Bootstrap 5

Switching to dark mode is done by toggling HTML tags that include -dark or -light as a category. It is made by manipulating the DOM with JavaScript. The text color also changes depending…

jQuery-SyoTimer-Plugin

jQuery Plugin for Countdown Timer on HTML Page | SyoTimer

yoTimer jQuery plugin allows you to create digital style countdowns/periodic timers on the webpage, with callbacks support and timezone/translation customization. Features Periodic count with the specified period…

vue-js-periodic-table

Dynamic, Data-driven Periodic Table built with Vue.js

Periodicity is a dynamic, data-driven periodic table created with Vue.js that uses D3 animations and graphs to show the beauty of periodic trends. Built With vue.js (component…