aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/erl_bif_info.c
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2018-10-29 11:53:10 +0100
committerLukas Larsson <[email protected]>2019-01-10 10:19:46 +0100
commit22550188406d4956ad64aecde38190a2f72eeacd (patch)
treef0d37bc9cff3988fbc91b01fa810f5620669d666 /erts/emulator/beam/erl_bif_info.c
parent78e67434b34813b8efe61f8e8dca445dd12b0f7b (diff)
downloadotp-22550188406d4956ad64aecde38190a2f72eeacd.tar.gz
otp-22550188406d4956ad64aecde38190a2f72eeacd.tar.bz2
otp-22550188406d4956ad64aecde38190a2f72eeacd.zip
erts: Add erlang:system_flag(system_logger,_)
This flag allows logger and other components to set the process which log messages from ERTS are to be sent.
Diffstat (limited to 'erts/emulator/beam/erl_bif_info.c')
-rw-r--r--erts/emulator/beam/erl_bif_info.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/erts/emulator/beam/erl_bif_info.c b/erts/emulator/beam/erl_bif_info.c
index 7fada0d548..9cc95a5c09 100644
--- a/erts/emulator/beam/erl_bif_info.c
+++ b/erts/emulator/beam/erl_bif_info.c
@@ -3139,6 +3139,8 @@ BIF_RETTYPE system_info_1(BIF_ALIST_1)
DECL_AM(tag);
BIF_RET(AM_tag);
#endif
+ } else if (ERTS_IS_ATOM_STR("system_logger", BIF_ARG_1)) {
+ BIF_RET(erts_get_system_logger());
}
BIF_ERROR(BIF_P, BADARG);