-
Notifications
You must be signed in to change notification settings - Fork 44
/
index.html
50 lines (47 loc) · 2.08 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
48
49
50
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0">
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
<link rel="icon" href="/favicon.ico" type="image/x-icon">
<title>Cabin - The best JavaScript and Node.js logging service</title>
<link rel="stylesheet" href="https://unpkg.com/docute@3/dist/docute.css" type="text/css">
<meta property="og:title" content="The best JavaScript and Node.js logging service">
<meta property="og:description" content="Cabin is the best alternative to and compatible with Sentry, Timber, Airbrake, Papertrail, Loggly, and Bugsnag.">
<meta property="og:site_name" content="Cabin">
<meta property="og:type" content="website">
<meta property="og:image" content="https://raw.githubusercontent.com/cabinjs/cabin/master/media/cabin.png">
</head>
<body>
<div id="app">
</div>
<script src="https://cdnjs.cloudflare.com/polyfill/v3/polyfill.min.js?features=Promise"></script>
<script src="https://unpkg.com/cabin"></script>
<script src="https://unpkg.com/xhook"></script>
<script src="https://unpkg.com/parse-request"></script>
<script src="https://unpkg.com/cuid"></script>
<script type="text/javascript">
(function() {
var cabin = new Cabin({ axe: { showMeta: true }});
cabin.setUser({
id: '1',
email: '[email protected]',
full_name: 'test'
});
cabin.info('viewed docs');
cabin.error(new Error('oops!'));
xhook.before(function(req) {
if (typeof req.headers !== 'object') req.headers = {};
if (!req.headers['X-Request-Id'])
req.headers['X-Request-Id'] = cuid();
cabin.info('xhr', parseRequest({ req: req }));
});
})();
</script>
<script src="https://unpkg.com/[email protected]" type="text/javascript"></script>
<script src="https://unpkg.com/docute@3/dist/docute.js" type="text/javascript"></script>
<script src="./config.js" type="text/javascript"></script>
</body>
</html>