Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
9005 manish.sha 1
# Copyright 2011, Google Inc. All Rights Reserved.
2
#
3
# Licensed under the Apache License, Version 2.0 (the "License");
4
# you may not use this file except in compliance with the License.
5
# You may obtain a copy of the License at
6
#
7
#     http://www.apache.org/licenses/LICENSE-2.0
8
#
9
# Unless required by applicable law or agreed to in writing, software
10
# distributed under the License is distributed on an "AS IS" BASIS,
11
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
# See the License for the specific language governing permissions and
13
# limitations under the License.
14
 
15
# The AdWords client library uses the slf4j logging facade, allowing you to plug in
16
# a logging framework of your choice. This configuration file sets up the
17
# logging infrastructure using log4j. If you wish to take advantage of this file
18
# and use log4j as your framework, you must include both the log4j artifact and
19
# the artifact to bridge slf4j with log4j. Please see http://www.slf4j.org for
20
# more information about slf4j.
21
#
22
# There are three separate logs:
23
#
24
#     soapXmlLogger: Logs the complete SOAP requests and responses.
25
#     requestInfoLogger: Logs basic information on what SOAP requests were made.
26
#     report_download: Logs report download requests and response headers.
27
#
28
# By default, the request_info log will store information on all requests while
29
# the soap_xml log will log only errors.
30
#
31
# Author: Kevin Winter
32
 
33
# Point each log to its appender. The first word after the equals sign
34
# represents the level of logging for each log. For example, to change the
35
# soapXmlLogger to only log all SOAP interactions, change the word WARN to
36
# INFO.
37
log4j.category.com.google.api.ads.adwords.lib.client.AdWordsServiceClient.soapXmlLogger=WARN, SOAP_LOG, CONSOLE
38
log4j.category.com.google.api.ads.adwords.lib.client.AdWordsServiceClient.requestInfoLogger=INFO, REQUEST_LOG, CONSOLE
39
log4j.category.com.google.api.ads.adwords.lib.utils.report_download=WARN, REPORT_LOG, CONSOLE
40
 
41
# Set the default logger for everything else to be no logs. This prevents all of
42
# the Axis libraries from complaining that no log is specified for them.
43
log4j.rootLogger=off
44
 
45
log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
46
log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
47
log4j.appender.CONSOLE.Threshold=INFO
48
log4j.appender.CONSOLE.layout.ConversionPattern=[%d{DATE}-%c{1}:%p:%t] %m%n
49
 
50
log4j.appender.SOAP_LOG=org.apache.log4j.RollingFileAppender
51
log4j.appender.SOAP_LOG.File=soap.log
52
log4j.appender.SOAP_LOG.MaxFileSize=20000KB
53
log4j.appender.SOAP_LOG.MaxBackupIndex=10
54
log4j.appender.SOAP_LOG.layout=org.apache.log4j.PatternLayout
55
log4j.appender.SOAP_LOG.layout.ConversionPattern=***********%n%d %5p %C{1}: %n***********%n%m%n
56
 
57
log4j.appender.REQUEST_LOG=org.apache.log4j.RollingFileAppender
58
log4j.appender.REQUEST_LOG.File=request.log
59
log4j.appender.REQUEST_LOG.MaxFileSize=20000KB
60
log4j.appender.REQUEST_LOG.MaxBackupIndex=10
61
log4j.appender.REQUEST_LOG.layout=org.apache.log4j.PatternLayout
62
log4j.appender.REQUEST_LOG.layout.ConversionPattern=***********%n%d %5p %C{1}: %n***********%n%m%n
63
 
64
log4j.appender.REPORT_LOG=org.apache.log4j.RollingFileAppender
65
log4j.appender.REPORT_LOG.File=report.log
66
log4j.appender.REPORT_LOG.MaxFileSize=20000KB
67
log4j.appender.REPORT_LOG.MaxBackupIndex=10
68
log4j.appender.REPORT_LOG.layout=org.apache.log4j.PatternLayout
69
log4j.appender.REPORT_LOG.layout.ConversionPattern=***********%n%d %5p %C{1}: %n***********%n%m%n