-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtest.ts
More file actions
49 lines (38 loc) · 848 Bytes
/
Copy pathtest.ts
File metadata and controls
49 lines (38 loc) · 848 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
import Logd from './src/Logd.js';
const logd = new Logd();
const log = logd.module('test');
log.log('Hello, world!');
log.debug('Hello, world!');
log.notice('Hello, world!');
log.info('Hello, world!');
log.warn('Hello, world!');
log.error('Hello, world!');
log.fatal('Hello, world!');
log.wtf('Hello, world!');
log.success('Hello, world!');
log.highlight('Hello, world!');
log.log(new Error('nope'), {a : 3, b :[1,2,3,4,5,6,7,8,9,10]});
try {
function thrower() {
throw new Error('test');
}
class a {
public a: number;
constructor() {
this.a = 1;
}
do() {
this.a = 2;
this.call();
}
call() {
thrower();
}
}
const b = new a();
log.log(b);
log.debug(a);
b.do();
} catch (e) {
log.error(e);
}