Bläddra i källkod

Minor documentation tweaks

pull/4/head
Andrew Thompson 14 år sedan
förälder
incheckning
61ae86f04f
2 ändrade filer med 4 tillägg och 3 borttagningar
  1. +3
    -2
      README.org
  2. +1
    -1
      src/lager.app.src

+ 3
- 2
README.org Visa fil

@ -69,7 +69,8 @@
The error_logger handler will also log more complete error messages (protected The error_logger handler will also log more complete error messages (protected
with use of trunc_io) to a "crash log" which can be referred to for further with use of trunc_io) to a "crash log" which can be referred to for further
information.
information. The location of the crash log can be specified by the crash_log
application variable. If undefined it is not written at all.
* Runtime loglevel changes * Runtime loglevel changes
You can change the log level of any lager backend at runtime by doing the You can change the log level of any lager backend at runtime by doing the
@ -82,7 +83,7 @@
Or, for the backend with multiple handles (files, mainly): Or, for the backend with multiple handles (files, mainly):
#+BEGIN_EXAMPLE #+BEGIN_EXAMPLE
lager:set_loglevel(lager_console_backend, "console.log" debug).
lager:set_loglevel(lager_file_backend, "console.log" debug).
#+END_EXAMPLE #+END_EXAMPLE
Lager keeps track of the minium log level being used by any backend and Lager keeps track of the minium log level being used by any backend and

+ 1
- 1
src/lager.app.src Visa fil

@ -18,7 +18,7 @@
{"log/console.log", info}]}]}, {"log/console.log", info}]}]},
%% Whether to write a crash log, and where. Undefined means no crash logger. %% Whether to write a crash log, and where. Undefined means no crash logger.
{crash_log, "logs/crash.log"}, {crash_log, "logs/crash.log"},
%% Whether to redirect error_logger messages into lager
%% Whether to redirect error_logger messages into lager - defaults to true
{error_logger_redirect, true} {error_logger_redirect, true}
]} ]}
]}. ]}.

Laddar…
Avbryt
Spara