Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
31 lines (28 sloc) 700 Bytes
<!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>
You can’t perform that action at this time.