소스 검색

add per-module per-function trace example

pull/246/head
Luis Rascao 10 년 전
부모
커밋
474516c95d
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. +2
    -2
      README.md

+ 2
- 2
README.md 파일 보기

@ -348,10 +348,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()

불러오는 중...
취소
저장