* Adds the console handler to the given logger. The console handler will log * all messages using the JavaScript Console API. * * @param {Logger=} opt_logger The logger to add the handler to; defaults * to the root logger.
(opt_logger)
| 569 | * to the root logger. |
| 570 | */ |
| 571 | function addConsoleHandler(opt_logger) { |
| 572 | let logger = opt_logger || logManager.root_ |
| 573 | logger.addHandler(consoleHandler) |
| 574 | } |
| 575 | |
| 576 | /** |
| 577 | * Removes the console log handler from the given logger. |
no test coverage detected