Skip to content
This repository has been archived by the owner on Jun 26, 2021. It is now read-only.

Commit

Permalink
Add Logging instructions to README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
tushargupta51 committed Mar 8, 2016
1 parent ae52854 commit 37b33cc
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,24 @@ You need to install the karma command line.
npm install -g karma
npm install -g karma-cli

**Logging**

Log levels are mapped as:

0: Error
1: Warning
2: Info
3: Verbose

You can add the code below to app.js to turn on logging. Implement the `log` method depending on how you want to redirect logs.

Logging = {
level: 3,
log: function (message) {
console.log(message);
}
};

**documentation generation**
Install grunt; call

Expand Down

0 comments on commit 37b33cc

Please sign in to comment.