Forward console.log to NSLog in browser process

This commit is contained in:
Corey Johnson & Kevin Sawicki 2013-05-29 11:20:59 -07:00
parent a4f35a8452
commit 715210944e
2 changed files with 6 additions and 1 deletions

View File

@ -57,7 +57,8 @@
"text-tmbundle": "1.0.0",
"textmate-clojure": "1.0.0",
"xml-tmbundle": "1.0.0",
"yaml-tmbundle": "1.0.0"
"yaml-tmbundle": "1.0.0",
"nslog": "0.1.0"
},
"devDependencies": {
"biscotto": "0.0.11",

View File

@ -2,6 +2,10 @@ fs = require 'fs'
path = require 'path'
delegate = require 'atom_delegate'
optimist = require 'optimist'
nslog = require('nslog')
console.log = (args...) -> nslog(args.join(" "))
require 'coffee-script'
atomApplication = null