echoes

Need something for logging in JavaScript? Want to powerful and simple solution? Echo.js is your choose, bro!

Echoes.js — comfort and elegance (while digging in logs)

Need something for logging in JavaScript? Want to powerful and simple solution?

Want to know what happened in module X between 9:00 and 10:00? You wish to see all logs of exact object for last 15 minutes?

Echo.js is your choose, bro!

echo       'You'      # => Level of importance is 0 
echo.debug 'are'      # => … is 0 
echo.info  'awesome,' # => … is 1 
echo.warn  'my'       # => … is 2 
echo.error 'friend!'  # => … is 3 
echo('Good news!'level: 3)       # => … is 3 
echo('Good news!'level: 'error') # => … is 3 
TODO: Add examples
TODO: Add examples

Get first record:

echo.logs.first()

To get all logs (array of log objects):

echo.logs.all()
= echo.logs
l.all()
l.first()
TODO: Add more examples
TODO: Add more examples
TODO: Add more examples
echo.shitHappened # =>  
echo.define(shitHappened: 8)
echo.shitHappened # Log function with level of importance equal to 8 
TODO: Add examples
TODO: Add examples

You can create curried function with predefined options, like level, namespacePrefix etc

TODO: Add examples
TODO: Add examples
TODO: Add examples
TODO: Add examples

This project uses Semantic Versioning for release numbering.

Currently this project in active development but no any releases yet.

Idea and code by @kossnocorp and other contributors.

Initialy sponsored by Evil Martians special for Wannafun.

The MIT License

Copyright (c) 2012 Sasha Koss

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.