我在应用引擎中有一个模块,配置如下:
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!") 来进行记录。谢谢您的帮助!