Log4j. properties code
### Set the logger output level and output destination ### log4j. rootlogger = debug, stdout, logfile ### output logs to the console ###### Org. apache. log4j. consoleappender (console) ### Org. apache. log4j. fileappender (File) ### Org. apache. log4j. dailyrollingfileappender (a log file is generated every day), ### Org. apache. log4j. rollingfileappender (a new file is generated when the file size reaches the specified size) log4j. appender. stdout = org. apache. log4j. leleappender # log4j. appender. stdout. target = system. errlog4j. appender. stdout. layout = org. apache. log4j. simplelayout ### output log information to the file: jibaits. log ### log4j. appender. logfile = org. apache. log4j. fileappenderlog4j. appender. logfile. file = D:/jibaits. loglog4j. appender. logfile. layout = org. apache. log4j. patternlayoutlog4j. appender. logfile. layout. conversionpattern = % d {yyyy-mm-dd hh: mm: SS} % F % P % m % N ### display part of the SQL statement log4j.logger.com. ibatis = debug log4j.logger.com. ibatis. common. JDBC. simpledatasource = debug log4j.logger.com. ibatis. common. JDBC. scriptrunner = debug log4j.logger.com. ibatis. sqlmap. engine. impl. sqlmapclientdelegate = debug log4j. logger. java. SQL. connection = debug log4j. logger. java. SQL. statement = debug log4j. logger. java. SQL. preparedstatement = debug