Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix stupid mistake

  • Loading branch information...
commit fa1078aa1385d66d387ab204c0dc4ac13ae120dd 1 parent 4309f76
@contra contra authored
Showing with 10 additions and 8 deletions.
  1. +2 −0  index.js
  2. +5 −5 lib/logger.coffee
  3. +2 −2 package.json
  4. +1 −1  test.coffee
View
2  index.js
@@ -0,0 +1,2 @@
+require('coffee-script');
+module.exports = require('./lib/logger');
View
10 lib/logger.coffee
@@ -3,10 +3,10 @@ require 'colors'
pack = require('./package').load()
module.exports =
- log: (str) -> console.log '[' + pack.name.magenta + ']', str
- debug: (str) -> console.log '[' + pack.name.magenta, '-', 'debug'.green + ']', str
- info: (str) -> console.log '[' + pack.name.magenta, '-', 'info'.white + ']', str
- warn: (str) -> console.log '[' + pack.name.magenta, '-', 'warn'.yellow + ']', str
- error: (str) -> console.log '[' + pack.name.magenta, '-', 'error'.red + ']', str
+ log: (str...) -> console.log '[' + pack.name.magenta + ']', str...
+ debug: (str...) -> console.log '[' + pack.name.magenta, '-', 'debug'.green + ']', str...
+ info: (str...) -> console.log '[' + pack.name.magenta, '-', 'info'.white + ']', str...
+ warn: (str...) -> console.log '[' + pack.name.magenta, '-', 'warn'.yellow + ']', str...
+ error: (str...) -> console.log '[' + pack.name.magenta, '-', 'error'.red + ']', str...
setName: (str) -> pack.name = str
View
4 package.json
@@ -1,11 +1,11 @@
{
"name":"node-log",
"description":"Simple logger for NodeJS",
- "version":"0.0.3",
+ "version":"0.0.4",
"homepage":"http://github.com/wearefractal/node-log",
"repository":"git://github.com/wearefractal/node-log.git",
"author":"Fractal <contact@wearefractal.com> (http://wearefractal.com/)",
- "main":"./lib/logger.coffee",
+ "main":"./lib/index.js",
"dependencies":{
"coffee-script":"*",
View
2  test.coffee
@@ -1,4 +1,4 @@
-log = require './lib/logger'
+log = require './index'
log.log 'testin'
log.debug 'testin'
log.info 'testin'
Please sign in to comment.
Something went wrong with that request. Please try again.