| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- #############################################################################
- # 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 只打 INFO信息
- #log4j.logger.org.springframework=INFO
- #全局的日志级别(打印sql必须要该属性)
- log4j.appender.Threshold=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=ERROR
- log4j.appender.R.File=/loygra/log/mooring/mooring.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
- #JDBC config
- 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
|