Using BasicConfigurator to log messages. When you configure using the BasicConfigurator.configure() method by default it uses the ConsoleAppender and PatternLayout for all the loggers.