Skip to content

Instantly share code, notes, and snippets.

@tommedema
Created May 8, 2012 10:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tommedema/2634104 to your computer and use it in GitHub Desktop.
Save tommedema/2634104 to your computer and use it in GitHub Desktop.
module.exports = function(mediator) {
mediator
.on('boot.init', function() {
console.log('boot init phase, outputting process information:');
console.log('process argv: %j', process.argv);
console.log('process execPath: %s', process.execPath);
console.log('process working dir: %s', process.cwd());
console.log('process gid: %d', process.getgid());
console.log('process uid: %d', process.getuid());
console.log('node version: %s', process.version);
console.log('process pid: %d', process.pid);
console.log('process arch: %s', process.arch);
console.log('process platform: %s', process.platform);
console.log('environment: %s', process.env);
})
.on('boot.ready', function() {
console.log('boot ready phase');
});
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment