public LoggingFraction fileHandler ( String name , String path , Level level , String formatter ) { Map < Object , Object > fileProperties = new HashMap <> ( ) ; fileProperties . put ( "path" , path ) ; fileProperties . put ( "relative-to" , "jboss.server.log.dir" ) ; fileHandler ( new FileHandler ( name ) . level ( level ) . formatter ( formatter ) . file ( fileProperties ) ) ; return this ; }
Add a FileHandler to the list of handlers for this logger