@Subscribe
    public void onEvent(BeanEvent e) {
        String className = e.getClass().getSimpleName();
        int i = className.lastIndexOf(SUFFIX);
        String subclassPrefix = i > 0 ? className.substring(0, i) : className;
        LOGGER.trace("{} bean '{}' [{}]", subclassPrefix, e.getBeanName(), e.getBean());
    }
A stock bean listener implementation that logs all BeanEvents as TRACE log statements.

@since 1.3
config/ogdl/src/main/java/org/apache/shiro/config/ogdl/event/LoggingBeanEventListener.java