com.google.api.adwords.lib
Class AdWordsServiceLogger

java.lang.Object
  extended by com.google.api.adwords.lib.AdWordsServiceLogger

public class AdWordsServiceLogger
extends java.lang.Object

Provides utility methods to cause the contents of AdWordsService messages to be logged as Web Service operations are performed.


Method Summary
static void log()
          Causes the contents of all AdWordsService requests and responses to be written to System.err.
static void logToFile(java.lang.String filename)
          Causes the contents of all AdWordsService requests and responses to be written to the file named by filename.
static void logToStream(java.io.OutputStream out)
          Causes the contents of all AdWordsService requests and responses to be written to the specified OutputStream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

logToStream

public static void logToStream(java.io.OutputStream out)
Causes the contents of all AdWordsService requests and responses to be written to the specified OutputStream.

Developers familiar with java.util.logging are encouraged to configure logging directly.

Parameters:
out - the OutputStream to which to write AdWordsService messages.

logToFile

public static void logToFile(java.lang.String filename)
                      throws java.io.FileNotFoundException
Causes the contents of all AdWordsService requests and responses to be written to the file named by filename.

Developers familiar with java.util.logging are encouraged to configure logging directly.

Parameters:
filename - the name of the file to which to write AdWordsService messages.
Throws:
java.io.FileNotFoundException - if the specified file cannot be opened for writing.

log

public static void log()
Causes the contents of all AdWordsService requests and responses to be written to System.err.

Developers familiar with java.util.logging are encouraged to configure logging directly.



Copyright © 2005 Google Corp. All Rights Reserved.