Created
October 27, 2015 20:04
-
-
Save mixu/c263f2d3cbc54b45f381 to your computer and use it in GitHub Desktop.
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
<html> | |
<script> | |
var m = require("minilog")("web"); | |
require("minilog").enable(); | |
m.error("some err"); | |
</script> | |
</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
var m = require('minilog')('foo'); | |
require('minilog').enable(); | |
m.error('Hello world'); | |
var app = require('app'); | |
var BrowserWindow = require('browser-window'); | |
var mainWindow = null; | |
app.on('ready', function() { | |
mainWindow = new BrowserWindow({width: 800, height: 600 }); | |
mainWindow.loadUrl('file://' + __dirname + '/index.html'); | |
m.error('Hello world 2'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment