We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f532989 commit 1c74229Copy full SHA for 1c74229
CachingConsole.js
@@ -18,6 +18,28 @@ export default class CachingConsole {
18
}
19
20
21
+ debug(line) {
22
+ this.cache.push(line);
23
+ if (this.cache.length > this.size) {
24
+ this.cache.shift();
25
+ }
26
+ if (!this.quiet) {
27
+ // eslint-disable-next-line no-console
28
+ console.debug(line);
29
30
31
+
32
+ info(line) {
33
34
35
36
37
38
39
+ console.info(line);
40
41
42
43
warn(line) {
44
this.cache.push(line);
45
if (this.cache.length > this.size) {
0 commit comments