Permalink
Browse files

Added lager:start() to the README

  • Loading branch information...
1 parent c713360 commit 3a1579acb13e2426c0b5a6ce1d1e6100c55ebfe9 Joe DeVivo committed Aug 16, 2012
Showing with 10 additions and 2 deletions.
  1. +10 −2 README.org
View
@@ -31,8 +31,16 @@
-compile([{parse_transform, lager_transform}]).
#+END_EXAMPLE
- Once you have built your code with lager, you can then generate log messages
- by doing the following:
+ Before logging any messages, you'll need to start the lager application. The
+ lager module's start function takes care of loading and starting any dependencies
+ lager requires.
+
+#+BEGIN_EXAMPLE
+ lager:start().
+#+END_EXAMPLE
+
+ Once you have built your code with lager and started the lager application,
+ you can then generate log messages by doing the following:
#+BEGIN_EXAMPLE
lager:error("Some message")

0 comments on commit 3a1579a

Please sign in to comment.