Permalink
Browse files

test lager color

  • Loading branch information...
1 parent bac4aa4 commit 1e54e7d1e5770a30a791e941e3dd906b16b4e51d @ronalfei committed Mar 3, 2014
Showing with 22 additions and 9 deletions.
  1. +8 −0 .gitignore
  2. +14 −5 src/ses.erl
  3. +0 −4 tags
View
@@ -1,3 +1,11 @@
*.dump
*.log
*.beam
+ebin/*
+deps/*
+ebin/*
+log/*
+*.log
+*.log.*
+*.beam
+erl_crash.dump
View
@@ -6,13 +6,13 @@
start()->
lager:start(),
application:start(ranch),
-lager:info("ranch ok"),
+ lager:info("ranch ok"),
application:start(cowlib),
-lager:info("cowlib ok"),
+ lager:debug("cowlib ok"),
application:start(crypto),
-lager:info("crypto ok"),
+ lager:warning("crypto ok"),
application:start(cowboy),
-lager:info("cowboy ok"),
+ lager:error("cowboy ok"),
application:start(websocket).
start_link()->
@@ -22,4 +22,13 @@ stop()->
application:stop(websocket).
test() ->
- lager:info("asdfasdf").
+ lager:debug("asdfasdf"),
+ lager:info("asdfasdf"),
+ lager:notice("asdfasdf"),
+ lager:warning("asdfasdf"),
+ lager:error("asdfasdf"),
+ lager:critical("asdfasdf"),
+ lager:alert("asdfasdf"),
+ lager:emergency("asdfasdf"),
+ ok.
+
View
4 tags
@@ -4274,10 +4274,6 @@ kv_keys_ ./deps/goldrush/src/gre.erl /^kv_keys_([{Key, _}|T]) ->$/;" f module:gr
kv_keys_ ./deps/lager/deps/goldrush/src/gre.erl /^kv_keys_([]) ->$/;" f module:gre
kv_keys_ ./deps/lager/deps/goldrush/src/gre.erl /^kv_keys_([{Key, _}|T]) ->$/;" f module:gre
lager ./deps/lager/src/lager.erl /^-module(lager).$/;" m
-lager:info ./src/ses.erl /^lager:info("cowboy ok"),$/;" f module:ses
-lager:info ./src/ses.erl /^lager:info("cowlib ok"),$/;" f module:ses
-lager:info ./src/ses.erl /^lager:info("crypto ok"),$/;" f module:ses
-lager:info ./src/ses.erl /^lager:info("ranch ok"),$/;" f module:ses
lager_app ./deps/lager/src/lager_app.erl /^-module(lager_app).$/;" m
lager_backend_throttle ./deps/lager/src/lager_backend_throttle.erl /^-module(lager_backend_throttle).$/;" m
lager_config ./deps/lager/src/lager_config.erl /^-module(lager_config).$/;" m

0 comments on commit 1e54e7d

Please sign in to comment.