Permalink
Browse files

browser

  • Loading branch information...
1 parent 5f928b2 commit a30ce6d9906aa660c97bc88c6a8294298977c65c @lancejpollard committed Oct 22, 2011
Showing with 3 additions and 0 deletions.
  1. +3 −0 README.md
View
3 README.md
@@ -40,6 +40,9 @@ logger.info "%s %s!", "Hello", "World" #=> "Hello World!"
logger.error "ERROR!"
logger.fatal "oh man..."
+# set a custom `out` method, which defaults to `console.log`
+logger.out = (message) -> alert(message)
+
# 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")

0 comments on commit a30ce6d

Please sign in to comment.