Browse Source

Merge pull request #246 from lrascao/doc/add_per_module_per_function_example

add per-module per-function trace example
pull/208/merge
Andrew Thompson 10 years ago
parent
commit
399db5e386
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      README.md

+ 2
- 2
README.md View File

@ -362,10 +362,10 @@ a wildcard to match any message that has that attribute, regardless of its
value.
Tracing to an existing logfile is also supported, if you wanted to log
warnings from a particular module to the default error.log:
warnings from a particular function in a particular module to the default error.log:
```erlang
lager:trace_file("log/error.log", [{module, mymodule}], warning)
lager:trace_file("log/error.log", [{module, mymodule}, {function, myfunction}], warning)
```
To view the active log backends and traces, you can use the lager:status()

Loading…
Cancel
Save