App Engine 模块日志空白
App Engine Module Logs Blank
我在 App Engine 中有一个配置如下的模块:
application: app_name_goes_here
module: static-backend
version: uno
runtime: python27
api_version: 1
threadsafe: true
instance_class: B2
basic_scaling:
max_instances: 10
idle_timeout: 5m
env_variables:
GAE_USE_SOCKETS_HTTPLIB : 'anyvalue'
builtins:
- remote_api: on
- appstats: off
inbound_services:
- channel_presence
handlers:
- url: /_ah/channel/connected/
script: ChannelApi.app
- url: /_ah/channel/disconnected/
script: ChannelApi.app
- url: /_ah/start
script: ModuleStartup.app
- url: /.*
script: main.app
libraries:
- name: webapp2
version: latest
- name: markupsafe
version: "0.15"
- name: setuptools
version: "0.6c11"
- name: jinja2
version: latest
- name: lxml
version: '2.3'
- name: django
version: "1.5"
- name: ssl
version: latest
- name: pycrypto
version: latest
- name: PIL
version: latest
- name: MySQLdb
version: latest
skip_files:
- ([^\s]+(\.(?i)(less))$)
在查看日志时,我看到了这个:
相同的日志记录在不是后端模块的主应用程序中运行良好。我通过将记录器定义为 log = logging.getLogger(name) 并使用 log.info("Hello World!") 进行记录。感谢您的帮助!
看起来像是日志查看器问题(或一些不太直观的功能?),如果您在第二个 select "All logs"(或 "activity",在某些情况下显示)日志上方的下拉列表 table。
如果您 select "request_log" 改为
,则日志显示正常(即通常的方式):
从 the viewer interface description it appears the dropdown is called "Log Selector" and from this description 看来它与 Compute Engine 相关,不应显示在 App Engine 日志查看器中:)
我在 App Engine 中有一个配置如下的模块:
application: app_name_goes_here
module: static-backend
version: uno
runtime: python27
api_version: 1
threadsafe: true
instance_class: B2
basic_scaling:
max_instances: 10
idle_timeout: 5m
env_variables:
GAE_USE_SOCKETS_HTTPLIB : 'anyvalue'
builtins:
- remote_api: on
- appstats: off
inbound_services:
- channel_presence
handlers:
- url: /_ah/channel/connected/
script: ChannelApi.app
- url: /_ah/channel/disconnected/
script: ChannelApi.app
- url: /_ah/start
script: ModuleStartup.app
- url: /.*
script: main.app
libraries:
- name: webapp2
version: latest
- name: markupsafe
version: "0.15"
- name: setuptools
version: "0.6c11"
- name: jinja2
version: latest
- name: lxml
version: '2.3'
- name: django
version: "1.5"
- name: ssl
version: latest
- name: pycrypto
version: latest
- name: PIL
version: latest
- name: MySQLdb
version: latest
skip_files:
- ([^\s]+(\.(?i)(less))$)
在查看日志时,我看到了这个:
相同的日志记录在不是后端模块的主应用程序中运行良好。我通过将记录器定义为 log = logging.getLogger(name) 并使用 log.info("Hello World!") 进行记录。感谢您的帮助!
看起来像是日志查看器问题(或一些不太直观的功能?),如果您在第二个 select "All logs"(或 "activity",在某些情况下显示)日志上方的下拉列表 table。
如果您 select "request_log" 改为
,则日志显示正常(即通常的方式):从 the viewer interface description it appears the dropdown is called "Log Selector" and from this description 看来它与 Compute Engine 相关,不应显示在 App Engine 日志查看器中:)