* 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)
| 604 | * to the root logger. |
| 605 | */ |
| 606 | function addConsoleHandler(opt_logger) { |
| 607 | let logger = opt_logger || logManager.root_ |
| 608 | logger.addHandler(consoleHandler) |
| 609 | } |
| 610 | |
| 611 | /** |
| 612 | * Removes the console log handler from the given logger. |
no test coverage detected