I have printed all code loaded as follows, why {lager_default_tracer,[]}, where beam file?
(lager_test_1@macbook.local)10> io:format("~p",[code:all_loaded()]).
[{io,"/usr/local/lib/erlang/lib/stdlib-2.3/ebin/io.beam"},
{erl_distribution,"/usr/local/lib/erlang/lib/kernel-3.1/ebin/erl_distribution.beam"},
{edlin,"/usr/local/lib/erlang/lib/stdlib-2.3/ebin/edlin.beam"},
{beam_clean,"/usr/local/lib/erlang/lib/compiler-5.0.3/ebin/beam_clean.beam"},
{v3_core,"/usr/local/lib/erlang/lib/compiler-5.0.3/ebin/v3_core.beam"},
{erl_epmd,"/usr/local/lib/erlang/lib/kernel-3.1/ebin/erl_epmd.beam"},
{love_misc,"/usr/local/bin/lager_test/lib/hanoch-0.0.1.6/ebin/love_misc.beam"},
{zlib,preloaded},
{error_handler,"/usr/local/lib/erlang/lib/kernel-3.1/ebin/error_handler.beam"},
{io_lib,"/usr/local/lib/erlang/lib/stdlib-2.3/ebin/io_lib.beam"},
{lib,"/usr/local/lib/erlang/lib/stdlib-2.3/ebin/lib.beam"},
{mnesia,"/usr/local/lib/erlang/lib/mnesia-4.12.4/ebin/mnesia.beam"},
{lager_test_app,"/usr/local/bin/lager_test/lib/lager_test-0.0.1.0/ebin/lager_test_app.beam"},
{beam_jump,"/usr/local/lib/erlang/lib/compiler-5.0.3/ebin/beam_jump.beam"},
{v3_codegen,"/usr/local/lib/erlang/lib/compiler-5.0.3/ebin/v3_codegen.beam"},
{beam_flatten,"/usr/local/lib/erlang/lib/compiler-5.0.3/ebin/beam_flatten.beam"},
{mnesia_tm,"/usr/local/lib/erlang/lib/mnesia-4.12.4/ebin/mnesia_tm.beam"},
{prim_eval,preloaded},
{beam_bool,"/usr/local/lib/erlang/lib/compiler-5.0.3/ebin/beam_bool.beam"},
{error_logger_lager_h,"/usr/local/bin/lager_test/lib/lager-2.0.0/ebin/error_logger_lager_h.beam"},
{lager_msg,"/usr/local/bin/lager_test/lib/lager-2.0.0/ebin/lager_msg.beam"},
{mnesia_frag,"/usr/local/lib/erlang/lib/mnesia-4.12.4/ebin/mnesia_frag.beam"},
{filename,"/usr/local/lib/erlang/lib/stdlib-2.3/ebin/filename.beam"},
{lager_default_tracer,[]},
{lager_default_formatter,"/usr/local/bin/lager_test/lib/lager-2.0.0/ebin/lager_default_formatter.beam"},
{mnesia_locker,"/usr/local/lib/erlang/lib/mnesia-4.12.4/ebin/mnesia_locker.beam"},
{mnesia_recover,"/usr/local/lib/erlang/lib/mnesia-4.12.4/ebin/mnesia_recover.beam"},
{mnesia_dumper,"/usr/local/lib/erlang/lib/mnesia-4.12.4/ebin/mnesia_dumper.beam"},
{mnesia_kernel_sup,"/usr/local/lib/erlang/lib/mnesia-4.12.4/ebin/mnesia_kernel_sup.beam"},
{mnesia_sp,"/usr/local/lib/erlang/lib/mnesia-4.12.4/ebin/mnesia_sp.beam"},
{erts_internal,preloaded},
{unicode,"/usr/local/lib/erlang/lib/stdlib-2.3/ebin/unicode.beam"},
{lager_backend_throttle,"/usr/local/bin/lager_test/lib/lager-2.0.0/ebin/lager_backend_throttle.beam"},
{beam_type,"/usr/local/lib/erlang/lib/compiler-5.0.3/ebin/beam_type.beam"},
{orddict,"/usr/local/lib/erlang/lib/stdlib-2.3/ebin/orddict.beam"},
{gb_sets,"/usr/local/lib/erlang/lib/stdlib-2.3/ebin/gb_sets.beam"},
{sofs,"/usr/local/lib/erlang/lib/stdlib-2.3/ebin/sofs.beam"},
{inet_db,"/usr/local/lib/erlang/lib/kernel-3.1/ebin/inet_db.beam"},
{lager_test_a,"/usr/local/bin/lager_test/lib/lager_test-0.0.1.0/ebin/lager_test_a.beam"},
{inet,"/usr/local/lib/erlang/lib/kernel-3.1/ebin/inet.beam"},
When I call module_info(), it is as follows:
(lager_test_1@macbook.local)11> lager_default_tracer:module_info().
[{exports,[{table,1},
{handle,1},
{module_info,0},
{module_info,1},
{info,1}]},
{imports,[]},
{attributes,[{vsn,[203040246025344403396962742072895880482]}]},
{compile,[{options,[]},
{version,"5.0.3"},
{time,{2017,8,27,5,43,32}},
{source,"/private/tmp/lager_test-0.0.1.0"}]}]
When I call lager_default_tracer:table(111)
, it is as follows:
(lager_test_1@macbook.local)12> lager_default_tracer:table(aaa).
** exception error: bad argument
in function lager_default_tracer:table/1