console-message-v2

Rich text console logging

This script should not be not be installed directly. It is a library for other scripts to include with the meta directive // @require https://greasyfork.org/scripts/389748-console-message-v2/code/console-message-v2.js?version=730537

Author
spiralx
Ratings
0 0 0
Version
2.0.0
Created
Updated
License
N/A
Applies to
All sites

Author's Description

console-message-v2.js - rich-text console logging

Revamped version of library written using ES6 and with some added functionality.

Based on the original console.message library (the old version can be @required as a library from here still).

Example
console.message()
  .span({ color: 'red' })
    .text('this is red! ')
    .text('this is green! ', { color: 'green' })
    .text('this is again red!')
  .line('info')
  .object(console)
  .trace()
  .line()
  .element(document.body)
  .print()