public LoggingFraction customHandler ( String name , String module , String className , Properties properties , String formatter ) { Map < Object , Object > handlerProperties = new HashMap <> ( ) ; final Enumeration < ? > names = properties . propertyNames ( ) ; while ( names . hasMoreElements ( ) ) { final String nextElement = ( String ) names . nextElement ( ) ; handlerProperties . put ( nextElement , properties . getProperty ( nextElement ) ) ; } customHandler ( new CustomHandler ( name ) . module ( module ) . attributeClass ( className ) . formatter ( formatter ) . properties ( handlerProperties ) ) ; return this ; }
Add a CustomHandler to this logger