Skip to content
Browse files

Update README with further examples

  • Loading branch information...
1 parent c231d43 commit 53365d9ef69d25e06862aa94472d57befe855cf9 @hyperthunk committed
Showing with 6 additions and 1 deletion.
  1. +6 −1 README.md
View
7 README.md
@@ -28,7 +28,7 @@ demo() ->
fastlog:configure(myapp),
%% add a new (named) logger
- fastlog:add_logger('net.kit.event.*', [{level, debug}]),
+ fastlog:add_logger('net.kit.event.*', debug),
%% update the level of an existing logger
fastlog:set_level(my.logger, warn),
@@ -43,6 +43,11 @@ demo() ->
%% log using wildcard - this will hit the 'net.kit.event.*'
%% logger we defined earlier....
fastlog:warn(net.kit.event.consumer, "I am the consumer....~n"),
+
+ %% use macros (with fastlog_parse_trans these will be expanded
+ %% to include lots of additional details)
+ ?DEBUG("Hello ~s~n", ["World"]),
+ ok.
```
There are many more features available, which are documented on the

0 comments on commit 53365d9

Please sign in to comment.
Something went wrong with that request. Please try again.