-module(memory_test). -export([ test/0 ]). test() -> application:ensure_all_started(lager), lager:info("received: ~p", [crypto:strong_rand_bytes(1024)]). %% %% MsgWarn = iolist_to_binary(io_lib:format("hex msg. json encode failed: ~p", [graylog_hex:bin2hex(term_to_binary(crypto:strong_rand_bytes(10)))])), %% Msg = {[ %% {<<"version">>,<<"1.1">>}, %% {<<"level">>,6}, %% {<<"short_message">>,MsgWarn}, %% {<<"timestamp">>,1579183303.113385}, %% {<<"host">>,<<"Silviu">>}, %% {<<"_node">>,<<"nonode@nohost">>}, %% {<<"_pid">>,<<"<0.77.0>">>}, %% {<<"_line">>,<<"10">>}, %% {<<"_function">>,<<"test">>}, %% {<<"_module">>,<<"memory_test">>}, %% {<<"_application">>,<<"graylog_lager">>}, %% {<<"_environment">>,<<"DEV">>}, %% {<<"_service">>,<<"erlesl">>} %% ]}, %% %% jiffy:encode(Msg).