Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 5 of 5 for getLogNotificationHelper (0.14 seconds)

  1. src/main/java/org/codelibs/fess/util/ComponentUtil.java

        }
    
        /**
         * Gets the log notification helper component.
         * @return The log notification helper.
         */
        public static LogNotificationHelper getLogNotificationHelper() {
            return getComponent(LOG_NOTIFICATION_HELPER);
        }
    
        /**
         * Gets the ingest factory component.
         * @return The ingest factory.
         */
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 28 06:59:19 GMT 2026
    - 30.9K bytes
    - Click Count (0)
  2. src/test/java/org/codelibs/fess/util/LogNotificationAppenderTest.java

            assertEquals(0, events.size());
        }
    
        @Test
        public void test_append_nonExcludedLogger() {
            final LogEvent event = createLogEvent(Level.ERROR, "org.codelibs.fess.helper.SystemHelper", "not excluded");
            appender.append(event);
    
            final List<LogNotificationEvent> events = ComponentUtil.getLogNotificationHelper().drainAll();
            assertEquals(1, events.size());
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 26 14:36:23 GMT 2026
    - 10.7K bytes
    - Click Count (0)
  3. src/test/java/org/codelibs/fess/timer/LogNotificationTargetTest.java

        }
    
        @Test
        public void test_expired_withEvents_drainsBuffer() {
            // Add events to buffer
            ComponentUtil.getLogNotificationHelper()
                    .offer(new LogNotificationEvent(System.currentTimeMillis(), "ERROR", "org.test", "msg1", null));
            ComponentUtil.getLogNotificationHelper()
                    .offer(new LogNotificationEvent(System.currentTimeMillis(), "WARN", "org.test", "msg2", null));
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 26 02:24:08 GMT 2026
    - 4.7K bytes
    - Click Count (0)
  4. src/main/java/org/codelibs/fess/timer/LogNotificationTarget.java

                    return;
                }
            } catch (final Exception e) {
                return;
            }
    
            final LogNotificationHelper helper;
            try {
                helper = ComponentUtil.getLogNotificationHelper();
            } catch (final Exception e) {
                return;
            }
    
            final List<LogNotificationEvent> events = helper.drainAll();
            if (events.isEmpty()) {
                return;
            }
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 26 02:24:08 GMT 2026
    - 4.5K bytes
    - Click Count (0)
  5. src/main/java/org/codelibs/fess/util/LogNotificationAppender.java

                    return;
                }
            } catch (final Exception e) {
                return;
            }
    
            final LogNotificationHelper helper;
            try {
                helper = ComponentUtil.getLogNotificationHelper();
            } catch (final Exception e) {
                return;
            }
    
            String throwableStr = null;
            final Throwable thrown = event.getThrown();
            if (thrown != null) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 26 14:36:23 GMT 2026
    - 6K bytes
    - Click Count (0)
Back to Top