How create diferents log File with different content using log4 in java configuration
问题 i am using spring batch and i need to create different log files one log for job, due to i acces to external properties file, i need to create configuration logs in java code . My canfiguration is ConsoleAppender console = new ConsoleAppender(); console.setLayout(new PatternLayout(stdoutConversionPattern)); console.setThreshold(Level.INFO); console.activateOptions(); Logger.getRootLogger().addAppender(console); // FICHERO: FileAppender1.LOG CONTENDRA LA INFROMACION DE LA EJECUCION DEL