Permalink
Browse files

first commit, works, havent tested on older browsers

  • Loading branch information...
1 parent 649fe5d commit 9dfea6e685a462f5b65b3a6b8b69cb9799b6b235 @lancejpollard committed Oct 22, 2011
Showing with 7 additions and 5 deletions.
  1. +7 −5 README.md
View
@@ -12,14 +12,16 @@ npm install common-logger
``` coffeescript
logger = new CommonLogger
+
+# override default colors for any of the log levels
logger.colors[CommonLogger.WARN] = CommonLogger.ANSI.RED
-logger.info "Hello %s", "World"
-logger.bench 1000 -> 1 + 1
+
+# the first parameter is the message, any following parameters are variables.
+logger.info "%s %s!", "Hello World" #=> "Hello World!"
+
+# watch the fps to see how your app is performing (`this` is the `CommonLogger.Timer` object)
logger.on "frame" ->
$("#log-line-template").tmpl(@fps).appendTo("#log-panel")
-
-logger.on "message", (data) ->
- $("#log-line-template").tmpl(data).appendTo("#log-panel")
```
## Resources

0 comments on commit 9dfea6e

Please sign in to comment.