-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
47 lines (42 loc) · 1.13 KB
/
index.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<html>
<head>
<meta charset="utf-8"/>
<title>OctoLogger :: Example</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous"/>
<script src="./octologger.dev.js"></script>
</head>
<body>
<br/>
<br/>
<div class="container">
<h1>OctoLogger Example</h1>
<div>
Open DevTools and see Console.
</div>
</div>
<script>
octologger.patchNativeAPI(window);
octologger.logger.setup({
silent: false,
meta: !false,
});
(function main(logger) {
logger.scope('Session', {started: new Date().toISOString()}, () => {
logger.scope('Application', function appScope() {
logger.add('Initialization', {version: '1.0.6'});
var pid = setTimeout(function appInit() {
logger.success('Ready to use');
}, 1);
});
});
logger.scope('Project ', () => {
logger.add('Name:', 'OctoLogger');
logger.add('Copyright:', {
author: 'RubaXa <[email protected]>',
license: 'MIT',
});
});
})(octologger.logger);
</script>
</body>
</html>