public static void main(String[] args){
  BaleenLogging logging=new BaleenLogging();
  logging.configure(Arrays.asList(new BaleenConsoleLoggerBuilder(DEFAULT_PATTERN,new MinMaxFilter(Level.WARN,Level.ERROR)),new BaleenFileLoggerBuilder("file","log.test",DEFAULT_PATTERN,new MinMaxFilter(Level.INFO,Level.WARN),true,Optional.empty(),Optional.empty())));
  org.slf4j.Logger logger=LoggerFactory.getLogger(BaleenLogging.class);
  logger.warn("Should be in both");
  logger.info("Only in the file");
  logger.error("Only to the console");
  logger.trace("Not in either");
}

public static void main ( String [ ] args ) { BaleenLogging logging = new BaleenLogging ( ) ; logging . configure ( Arrays . asList ( new BaleenConsoleLoggerBuilder ( DEFAULT_PATTERN , new MinMaxFilter ( Level . WARN , Level . ERROR ) ) , new BaleenFileLoggerBuilder ( "file" , "log.test" , DEFAULT_PATTERN , new MinMaxFilter ( Level . INFO , Level . WARN ) , true , Optional . empty ( ) , Optional . empty ( ) ) ) ) ; org . slf4j . Logger logger = LoggerFactory . getLogger ( BaleenLogging . class ) ; logger . warn ( "Should be in both" ) ; logger . info ( "Only in the file" ) ; logger . error ( "Only to the console" ) ; logger . trace ( "Not in either" ) ; }
simple main class which can act as a manual test for file and console logging .
