-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changed build script to update version numbers in tutorial and vs
Work in progress on vs loglevel Removed console.info statement
- Loading branch information
Showing
13 changed files
with
140 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<!DOCTYPE html> | ||
<html class="solid"> | ||
<head> | ||
<meta charset=utf8 /> | ||
<title>ulog vs loglevel</title> | ||
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500"> | ||
<link rel="stylesheet" href="../style.css"> | ||
<script src="https://unpkg.com/ulog@2.0.0-beta.16/ulog.min.js"></script> | ||
<!-- load some small script files with logging in them --> | ||
<!-- to better illustrate if the callstack gets mangled --> | ||
<script src="loglevel.js"></script> | ||
<script src="ulog.js"></script> | ||
<script src="my-app.js"></script> | ||
<script src="timings.js"></script> | ||
<script src="colors.js"></script> | ||
<script src="levels.js"></script> | ||
<script src="formats.js"></script> | ||
<script>ulog.ext()</script> | ||
<script> | ||
function logWithLogLevel(){ | ||
myloglevel.log() | ||
myapp.logWithLogLevel() | ||
colors.logWithLogLevel() | ||
timings.logWithLogLevel() | ||
} | ||
|
||
function logWithUlog(){ | ||
myulog.log() | ||
myapp.logWithUlog() | ||
colors.logWithUlog() | ||
levels.logWithUlog() | ||
formats.logWithUlog() | ||
timings.logWithUlog() | ||
} | ||
</script> | ||
</head> | ||
<body> | ||
<main> | ||
<h1><img src="../ulog.png"> vs <b>loglevel</b></h1> | ||
<p>This page compares <code>ulog</code> to <a href="https://npmjs.com/package/loglevel"><code>loglevel</code></a>.</p> | ||
<h2>Open devtools</h2> | ||
<p>Open the browser developer tools (F12).</p> | ||
<h2>TO DO</h2> | ||
</main> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
self.myloglevel = { | ||
log: function(){ | ||
// code below is tightly coupled to debug | ||
var logger = log.createLogger('loglevel') | ||
logger.info('------------') | ||
logger.info('| loglevel |') | ||
logger.info('------------') | ||
} | ||
} | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters