mathew-kurian / Scribe.js

:scroll: Node.js logging made simple! Online access to logs and more...
https://mathew-kurian.github.io/Scribe.js/
MIT License
284 stars 45 forks source link

console['f'] usage not documented #10

Closed frostyandy2k closed 10 years ago

frostyandy2k commented 10 years ago

I get an error when trying the example:

/Users/user/ScribeOriginalJS/src/index.js:337
        tag = tag(path.basename(n));  
              ^
TypeError: undefined is not a function
    at Console.console.f.console.file (/Users/user/ScribeOriginalJS/src/index.js:337:15)
    at Object.<anonymous> (/Users/user/ScribeOriginalJS/test.js:61:9)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Function.Module.runMain (module.js:497:10)
    at startup (node.js:119:16)
    at node.js:906:3

This line throws the error: console.f(__filename).log("Your message"); // [file.js] Your message

Could you add more usage information to the example or the documentation?

mathew-kurian commented 10 years ago

I apologize for this issue. It has been fixed. I will try to add some test cases soon.