Преглед на файлове

Merge pull request #70 from basho/jnd-readme

Added lager:start() to the README
pull/56/merge
Andrew Thompson преди 12 години
родител
ревизия
f29b14f18c
променени са 1 файла, в които са добавени 10 реда и са изтрити 2 реда
  1. +10
    -2
      README.org

+ 10
- 2
README.org Целия файл

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

Зареждане…
Отказ
Запис