Browse Source

Merge pull request #70 from basho/jnd-readme

Added lager:start() to the README
pull/56/merge
Andrew Thompson 12 years ago
parent
commit
f29b14f18c
1 changed files with 10 additions and 2 deletions
  1. +10
    -2
      README.org

+ 10
- 2
README.org View File

@ -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")

Loading…
Cancel
Save