File size: 602 Bytes
5fae594
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Log_ Browser Test</title>
</head>
<body>
  <h2>Open Your Console</h2>
  <script src="../src/browser.js"></script>
  <script>

    var last = [];
    var clog = console.log;

    window.console.log = function () {
      last = arguments;
      clog.apply(console, arguments);
    };

    Log('namespace', 'green')('message');
    Log('namespace')({object: 'should be serialized'});
    Log('fancy', 'bold')('message');
    Log('fancy', 'italic')('message');
    Log('fancy', 'underline')('message');

  </script>
</body>
</html>