aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kernel/src/application_controller.erl
diff options
context:
space:
mode:
authorSiri Hansen <[email protected]>2018-05-14 17:01:15 +0200
committerLukas Larsson <[email protected]>2018-05-21 17:43:53 +0200
commit033bcc2296d7d79c53d56798ab0ccf232f451574 (patch)
tree1737c8c27710aa3ea73844140a498f040ffa25c6 /lib/kernel/src/application_controller.erl
parentee9e7de41ec6b14857a2e32099cf76b425c3b778 (diff)
downloadotp-033bcc2296d7d79c53d56798ab0ccf232f451574.tar.gz
otp-033bcc2296d7d79c53d56798ab0ccf232f451574.tar.bz2
otp-033bcc2296d7d79c53d56798ab0ccf232f451574.zip
Fix error_logger:tty/1 to turn on/off tty logging
This function earlier only added/removed the old error_logger_tty_h report handler. Since it is mostly used for turning off logging to tty in general, it now also checks the default logger handlers. It works as follows: tty(true): * If default handler is logger_std_h of type standard_io, make sure it has no 'error_logger_tty_false filter'. * Else, add a new instance of logger_std_h with type standard_io with id 'error_logger_tty_true'. tty(false): * Remove error_logger_tty_h report handler if it exists. * Remove error_logger_tty_false logger handler if it exists. * If default handler is logger_std_h of type standard_io, add a filter named 'error_logger_tty_false', which stops all events.
Diffstat (limited to 'lib/kernel/src/application_controller.erl')
0 files changed, 0 insertions, 0 deletions