1.0.5 • Published 3 years ago

console-log-store v1.0.5

Weekly downloads
4
License
MIT
Repository
github
Last release
3 years ago

Store console.log messages

Usage

This is a simple script to be included via

<script type="text/javascript" src="console-log-store.min.js"></script>

into your web site. Then log messages are captured

> Logger.list()
[]

> console.log(123)

> log0 = Logger.list()[0]
Object {level: "DEFAULT", date: Wed Aug 10 2016 18:17:38 GMT+0200 (CEST), message: "123"}

> log0.level
"DEFAULT"

> log0.date
Wed Aug 10 2016 18:17:38 GMT+0200 (CEST)

> log0.message
"123"

One unavoidable problem is that the source line in the browser log then points to the console-log-store.min.js script; In Chrome you can then blackbox the script to prevent this: Dev tools -> Settings -> Blackboxing -> Add pattern "console-log-store.min.js".

Build

Checkout and run "npm run build"

1.0.5

3 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago