From 474516c95da8f33b359693665dc78c85b88cd83e Mon Sep 17 00:00:00 2001 From: Luis Rascao Date: Thu, 11 Dec 2014 17:32:56 +0000 Subject: [PATCH] add per-module per-function trace example --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5d234c8..a33d996 100644 --- a/README.md +++ b/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()