Google Drive API Java客户端库日志记录

Google Drive API Java客户端库日志记录,java,google-api,google-drive-api,google-api-java-client,Java,Google Api,Google Drive Api,Google Api Java Client,GoogleDriveAPIJava客户端是否记录传出的REST-HTTP请求和传入的REST-HTTP响应 这对于调试API调用以确保处理正确的请求和响应非常重要 有没有办法打开日志来查看通过驱动API调用发送给Google的请求和响应 感谢它使用java.util.logging.Logger记录HTTP请求和响应的详细信息,包括URL、标题和内容 通常,使用logging.properties文件管理日志记录。例如: # Properties file which configures t

GoogleDriveAPIJava客户端是否记录传出的REST-HTTP请求和传入的REST-HTTP响应

这对于调试API调用以确保处理正确的请求和响应非常重要

有没有办法打开日志来查看通过驱动API调用发送给Google的请求和响应


感谢

它使用java.util.logging.Logger记录HTTP请求和响应的详细信息,包括URL、标题和内容

通常,使用logging.properties文件管理日志记录。例如:

# Properties file which configures the operation of the JDK logging facility.
# The system will look for this config file to be specified as a system property:
# -Djava.util.logging.config.file=${project_loc:googleplus-simple-cmdline-sample}/logging.properties

# Set up the console handler (uncomment "level" to show more fine-grained messages)
handlers = java.util.logging.ConsoleHandler
java.util.logging.ConsoleHandler.level = CONFIG

# Set up logging of HTTP requests and responses (uncomment "level" to show)
com.google.api.client.http.level = CONFIG

有关更多信息,请参见

它使用java.util.logging.Logger记录HTTP请求和响应的详细信息,包括URL、标题和内容

通常,使用logging.properties文件管理日志记录。例如:

# Properties file which configures the operation of the JDK logging facility.
# The system will look for this config file to be specified as a system property:
# -Djava.util.logging.config.file=${project_loc:googleplus-simple-cmdline-sample}/logging.properties

# Set up the console handler (uncomment "level" to show more fine-grained messages)
handlers = java.util.logging.ConsoleHandler
java.util.logging.ConsoleHandler.level = CONFIG

# Set up logging of HTTP requests and responses (uncomment "level" to show)
com.google.api.client.http.level = CONFIG

有关更多信息,请参见

谢谢提供详细信息。我会试试的。谢谢你提供的细节。我试试看。