Blame | Last modification | View Log | RSS feed
# Copyright 2011, Google Inc. All Rights Reserved.## Licensed 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.# The AdWords client library uses the slf4j logging facade, allowing you to plug in# a logging framework of your choice. This configuration file sets up the# logging infrastructure using log4j. If you wish to take advantage of this file# and use log4j as your framework, you must include both the log4j artifact and# the artifact to bridge slf4j with log4j. Please see http://www.slf4j.org for# more information about slf4j.## There are three separate logs:## soapXmlLogger: Logs the complete SOAP requests and responses.# requestInfoLogger: Logs basic information on what SOAP requests were made.# report_download: Logs report download requests and response headers.## By default, the request_info log will store information on all requests while# the soap_xml log will log only errors.## Author: Kevin Winter# Point each log to its appender. The first word after the equals sign# represents the level of logging for each log. For example, to change the# soapXmlLogger to only log all SOAP interactions, change the word WARN to# INFO.log4j.category.com.google.api.ads.adwords.lib.client.AdWordsServiceClient.soapXmlLogger=WARN, SOAP_LOG, CONSOLElog4j.category.com.google.api.ads.adwords.lib.client.AdWordsServiceClient.requestInfoLogger=INFO, REQUEST_LOG, CONSOLElog4j.category.com.google.api.ads.adwords.lib.utils.report_download=WARN, REPORT_LOG, CONSOLE# Set the default logger for everything else to be no logs. This prevents all of# the Axis libraries from complaining that no log is specified for them.log4j.rootLogger=offlog4j.appender.CONSOLE=org.apache.log4j.ConsoleAppenderlog4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayoutlog4j.appender.CONSOLE.Threshold=INFOlog4j.appender.CONSOLE.layout.ConversionPattern=[%d{DATE}-%c{1}:%p:%t] %m%nlog4j.appender.SOAP_LOG=org.apache.log4j.RollingFileAppenderlog4j.appender.SOAP_LOG.File=soap.loglog4j.appender.SOAP_LOG.MaxFileSize=20000KBlog4j.appender.SOAP_LOG.MaxBackupIndex=10log4j.appender.SOAP_LOG.layout=org.apache.log4j.PatternLayoutlog4j.appender.SOAP_LOG.layout.ConversionPattern=***********%n%d %5p %C{1}: %n***********%n%m%nlog4j.appender.REQUEST_LOG=org.apache.log4j.RollingFileAppenderlog4j.appender.REQUEST_LOG.File=request.loglog4j.appender.REQUEST_LOG.MaxFileSize=20000KBlog4j.appender.REQUEST_LOG.MaxBackupIndex=10log4j.appender.REQUEST_LOG.layout=org.apache.log4j.PatternLayoutlog4j.appender.REQUEST_LOG.layout.ConversionPattern=***********%n%d %5p %C{1}: %n***********%n%m%nlog4j.appender.REPORT_LOG=org.apache.log4j.RollingFileAppenderlog4j.appender.REPORT_LOG.File=report.loglog4j.appender.REPORT_LOG.MaxFileSize=20000KBlog4j.appender.REPORT_LOG.MaxBackupIndex=10log4j.appender.REPORT_LOG.layout=org.apache.log4j.PatternLayoutlog4j.appender.REPORT_LOG.layout.ConversionPattern=***********%n%d %5p %C{1}: %n***********%n%m%n