-
Notifications
You must be signed in to change notification settings - Fork 76
/
example.html
31 lines (28 loc) · 700 Bytes
/
example.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
<script src="screenlog.js"></script>
<script>
screenLog.init({ autoScroll: false });
screenLog.log('String: Hello world');
screenLog.log('Numbers: ' + 124);
screenLog.log(21, 'multiple arguments');
screenLog.log('Arrays', [1, 2, 3]);
screenLog.log('Objects', {a: 3});
console.log('console.log also gets logged.')
var i = 10;
function log() {
console.log('Future log', Date.now());
console.error('Future error', Date.now());
console.warn('Future warn', Date.now());
console.info('Future info', Date.now());
if (--i) { setTimeout(log, 1000); }
}
log();
</script>
</body>
</html>