Logging issue for Adwords

17 views
Skip to first unread message

shweta.so...@gmail.com

unread,
Jan 14, 2019, 5:11:29 AM1/14/19
to AdWords API and Google Ads API Forum
Hi, 

I am using logback.xml to wite the logs. I am able to write the logs to console but not able to write it to files while using adwords api.

Below is my logback.xml file:

<?xml version="1.0" encoding="UTF-8"?>
<configuration>

<appender name="STDOUT"
class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} %d[%thread] %-5level %logger{36}
- %msg%n</pattern>
</encoder>
</appender>

<appender name="AdwordsAppAppender"
class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>adwords.log</file>
<rollingPolicy
class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<!-- daily rollover -->
<fileNamePattern>adwords.%d{yyyy-MM-dd-HH}.log
</fileNamePattern>
<maxHistory>30</maxHistory>
<totalSizeCap>3GB</totalSizeCap>
</rollingPolicy>
<encoder>
<pattern>%d [%thread] %-5level %logger{50} - %msg%n</pattern>
</encoder>
</appender>

<root level="info">
<appender-ref ref="AdwordsAppAppender" />
<appender-ref ref="STDOUT" />
</root>

</configuration>


Below are the dependencies I am using,

<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.7.5</version>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<version>1.1.8</version>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-core</artifactId>
<version>1.1.8</version>
</dependency>

Please let me know if any dependency conflicts are there while using adwords API?

Peter Oliquino (AdWords API Team)

unread,
Jan 14, 2019, 6:08:08 AM1/14/19
to AdWords API and Google Ads API Forum
Hi,

This seems to be specific to the client library and the client library owners are better equipped in assisting you on this. This said, and in order to provide you the right link where you can post your concern, could you provide the name of the client library you are using?

Best regards,
Peter
AdWords API Team
Reply all
Reply to author
Forward
0 new messages