You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
71 lines
2.8 KiB
71 lines
2.8 KiB
#############################################################################
|
|
# Licensed to the Apache Software Foundation (ASF) under one or more
|
|
# contributor license agreements. See the NOTICE file distributed with
|
|
# this work for additional information regarding copyright ownership.
|
|
# The ASF licenses this file to You under the Apache License, Version 2.0
|
|
# (the "License"); you may not use this file except in compliance with
|
|
# the License. You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
#############################################################################
|
|
log4j.rootLogger=INFO,CONSOLE,R
|
|
log4j.additivity.org.apache=true
|
|
|
|
#spring \u53EA\u6253 INFO\u4FE1\u606F
|
|
#log4j.logger.org.springframework=INFO
|
|
|
|
#\u5168\u5C40\u7684\u65E5\u5FD7\u7EA7\u522B(\u6253\u5370sql\u5FC5\u987B\u8981\u8BE5\u5C5E\u6027)
|
|
log4j.appender.Threshold=DEBUG
|
|
|
|
|
|
#JDBC config
|
|
log4j.logger.com.mybatis=DEBUG
|
|
log4j.logger.com.mybatis.common.jdbc.SimpleDataSource=DEBUG
|
|
log4j.logger.com.mybatis.common.jdbc.ScriptRunner=DEBUG
|
|
log4j.logger.com.mybatis.sqlmap.engine.impl.SqlMapClientDelegate=DEBUG
|
|
log4j.logger.java.sql=DEBUG
|
|
log4j.logger.java.sql.ResultSet=DEBUG
|
|
log4j.logger.java.sql.Connection=DEBUG
|
|
log4j.logger.java.sql.Statement=DEBUG
|
|
log4j.logger.java.sql.PreparedStatement=DEBUG
|
|
log4j.logger.org.apache=DEBUG
|
|
|
|
|
|
#ConsoleAppender
|
|
log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
|
|
log4j.appender.CONSOLE.Threshold=DEBUG
|
|
log4j.appender.CONSOLE.Target=System.out
|
|
log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
|
|
log4j.appender.CONSOLE.layout.ConversionPattern=%d %p [%t] %C.%M(%F:%L) - %m%n
|
|
|
|
#FileAppender
|
|
log4j.appender.R=org.apache.log4j.RollingFileAppender
|
|
log4j.appender.R.Threshold=INFO
|
|
log4j.appender.R.File=/log/lpro/lpro.log
|
|
log4j.appender.R.MaxFileSize=4096KB
|
|
log4j.appender.R.Append=true
|
|
log4j.appender.R.MaxBackupIndex=40
|
|
log4j.appender.R.layout=org.apache.log4j.PatternLayout
|
|
#Pattern to output : date priority [category] - <message>line_separator
|
|
log4j.appender.R.layout.ConversionPattern=%d %p [%t] %C.%M(%F:%L) - %m%n
|
|
|
|
|
|
|
|
#\u5176\u4ED6\u884C\u4E3A\u7684\u65E5\u5FD7\u6587\u4EF6\uFF0C\u5982\u652F\u4ED8\u8BB0\u5F55\u7B49
|
|
log4j.logger.other=INFO,other
|
|
log4j.appender.other=org.apache.log4j.DailyRollingFileAppender
|
|
log4j.appender.other.File=/log/other/other.log
|
|
log4j.appender.other.DatePattern='_'yyyy-MM-dd'.log'
|
|
log4j.appender.other.layout=org.apache.log4j.PatternLayout
|
|
log4j.appender.other.layout.ConversionPattern=%d %p [%c %L %l] - %m%n
|
|
log4j.additivity.other=true
|
|
|
|
|
|
|
|
|
|
|