How to capture below error in java code? Always receiving timeout exception in java.

Best Answer

  • Jirapongse
    Jirapongse ✭✭✭✭✭
    Answer ✓

    @bmahajan

    You can create a custom log handler to catch these log events. For more information, please refer to the answer in this thread.

            Logger rootLogger = LogManager.getLogManager().getLogger("");
            rootLogger.addHandler(new MyLogHandler());

Answers