App引擎模块日志空白 [英] App Engine Module Logs Blank
问题描述
application:app_name_goes_here
module:static-backend
版本:uno
运行时:python27
api_version:1
线程安全: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
处理程序:
- url:/ _ah / channel /连接/
脚本:ChannelApi.app
- url:/ _ah / channel / disconnected /
脚本:ChannelApi.app
- url:/ _ah / start
脚本:ModuleStartup.app
- url:/.*
脚本:main.app
库:
- 名称:webapp2
版本:latest
- name:markupsafe
版本:0.15
- 名称:setuptools
版本:0.6c11
- 名称:jinja2
版本:迟到st
- name:lxml
version:'2.3'
- name:django
version:1.5
- name:ssl
version:latest
- name:pycrypto
版本:latest
- name:PIL
版本:latest
- name:MySQLdb
版本:latest
skip_files:
- ([^ \s] +(\。(?i)(less))$)
查看日志时,我看到这个:
p>
相同的日志记录在主应用程序中并不是后端模块。通过将日志记录器定义为log = logging.getLogger( name )并使用log.info(Hello World!)来记录日志。感谢您的帮助!
看起来像日志查看器问题(或者一些不那么直观的功能?在日志表上方的第二个下拉列表中显示所有日志(或活动,在某些情况下显示)。
如果您选择request_log,日志显示OK(即通常的方式):
从查看者界面描述,它的下拉列表称为日志选择器,来自这个描述看起来它是计算引擎相关的,不应该显示在App Engine日志查看器:)
I have a module in app engine configured like this:
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))$)
When looking at the logs I am seeing this:
The same logging is working fine inside the main app that isn't a backend module. I am logging using by defining my logger as log = logging.getLogger(name) and using log.info("Hello World!"). Thanks for the help!
Looks like a log viewer problem (or some not so intuitive feature?), happening if you select "All logs" (or "activity", showing in some cases) in the 2nd dropdown list above the logs table.
Logs show OK (i.e. the usual way) if you select "request_log" instead:
From the viewer interface description it appears the dropdown is called "Log Selector" and from this description it appears it is Compute Engine related and shouldn't show up on the App Engine logs viewer :)
这篇关于App引擎模块日志空白的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!