A method for reporting informational messages in CommandLineListener#execute(CommandLineArgument[]) implementations. It ensures that messages are written to the log file and/or written to stdout as appropriate. @param str the informational message
(String str)
| 682 | * @param str the informational message |
| 683 | */ |
| 684 | public static void info(String str) { |
| 685 | switch (ZAP.getProcessType()) { |
| 686 | case cmdline: |
| 687 | System.out.println(str); |
| 688 | break; |
| 689 | default: // Ignore |
| 690 | } |
| 691 | // Always write to the log |
| 692 | LOGGER.info(str); |
| 693 | } |
| 694 | |
| 695 | /** |
| 696 | * A method for reporting error messages in {@link |
no test coverage detected