Skip to content

Instantly share code, notes, and snippets.

@mixu
Created October 27, 2015 20:04
Show Gist options
  • Save mixu/c263f2d3cbc54b45f381 to your computer and use it in GitHub Desktop.
Save mixu/c263f2d3cbc54b45f381 to your computer and use it in GitHub Desktop.
<html>
<script>
var m = require("minilog")("web");
require("minilog").enable();
m.error("some err");
</script>
</html>
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