AppEngine TaskQueue日志记录级别(AppEngine TaskQueue Logging Levels)

系统教程 行业动态 更新时间:2024-06-14 16:57:17
AppEngine TaskQueue日志记录级别(AppEngine TaskQueue Logging Levels)

我有一个使用推送任务队列的应用程序, 我想知道一些有关在管理控制台中发送到任务的参数的信息。

我认为一个简单的解决方案就是做一个日志。 信息给我的信息,这些似乎没有显示在管理控制台中。

只显示警告严重级别的日志。 所以我现在的解决方案就是将这些信息记录为警告(这很糟糕)。

我看到许多人在任务队列中使用log.info的例子。 我应该在管理控制台中看到信息级日志吗? 我在找错了地方吗? 有没有办法在管理控制台中打开信息级别日志记录?

谢谢, 弥敦道

I have an application that is using push task queues, I would like to know some info about what parameters are being sent to the tasks in the admin console.

I figured an easy solution would be to do a log.info to give me the information, these don't seem to show up in the admin console though.

Only warning, severe level logs show up. So my current solution it so write these info logs out as warnings (which is terrible).

I see lots of examples of people using log.info in task queues. Am I supposed to see info level logs in the admin console? Am I looking in the wrong place? Is there a way to turn on info level logging in the admin console?

Thanks, Nathan

最满意答案

它实际上取决于您使用的语言,但是GAE的默认日志记录级别为WARNING(至少在Java中它是这样),因此在该级别以下记录的任何内容都不会通过日志。

如果您使用的是Java,则需要编辑WEB-INF/logging.properties文件并更改其值

.level =警告

.level = INFO

It really depends on the language you are using, but GAE comes with a default logging level of WARNING (at least in Java it does) so anything being logged below that level wont go through to the logs.

If you are using Java you need to edit your WEB-INF/logging.properties file and change the value from

.level = WARNING

to

.level = INFO

更多推荐

本文发布于:2023-04-12 19:54:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/dzcp/9535339291037055d8563fd20ee814eb.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:级别   日志   TaskQueue   AppEngine   Logging

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!