Module lager_common_test_backend

Function Index

bounce/0
bounce/1
get_logs/0Before every test, just lager_common_test_backend:bounce(Level) with the log level of your choice.
terminate/2gen_event callback, does nothing.

Function Details

bounce/0

bounce() -> any()

bounce/1

bounce(Level) -> any()

get_logs/0

get_logs() -> [iolist()] | {error, term()}

Before every test, just lager_common_test_backend:bounce(Level) with the log level of your choice. Every message will be passed along to ct:pal for your viewing in the common_test reports. Also, you can call lager_common_test_backend:get_logs/0 to get a list of all log messages this backend has received during your test. You can then search that list for expected log messages.

terminate/2

terminate(Reason::any(), State::#state{level = {mask, integer()}, formatter = atom(), format_config = any(), log = list()}) -> {ok, list()}

gen_event callback, does nothing.


Generated by EDoc