如何更改azure-functions-maven-plugin的日志记录级别?

时间:2018-03-10 21:29:02

标签: java azure azure-functions

我开发了一个Azure功能,我使用“mvn azure-functions:run”命令在本地运行它。如何更改控制台日志级别?它似乎是INFO,并打印出如下内容:

[3/10/18 9:26:38 PM] Generating 1 job function(s)
[3/10/18 9:26:38 PM] Starting Host (HostId=pollux-1571256755, Version=2.0.11587.0, ProcessId=18280, Debug=False, ConsecutiveErrors=0, StartupCount=2, FunctionsExtensionVersion=)
[3/10/18 9:26:38 PM] Found the following functions:
[3/10/18 9:26:38 PM] Host.Functions.post
[3/10/18 9:26:38 PM]
[3/10/18 9:26:38 PM] Job host started
info: Worker.Java.aa343152-8252-4f5b-88bf-664d1f8e0c3e[0]
      Listening for transport dt_socket at address: 5005
info: Worker.Java.aa343152-8252-4f5b-88bf-664d1f8e0c3e[0]
      Microsoft Azure Functions Java Runtime [build 1.0.0-beta-3]
info: Worker.Java.aa343152-8252-4f5b-88bf-664d1f8e0c3e[0]
      [INFO] {MessageHandler.handle}: Message generated by "StartStream.Builder"
info: Worker.Java.aa343152-8252-4f5b-88bf-664d1f8e0c3e[0]
      Worker initialized
info: Worker.Java.aa343152-8252-4f5b-88bf-664d1f8e0c3e[0]
      "post" loaded (ID: 7e6b5aa1-d8d9-496b-ba34-ba12d562e8af, Reflection:   "C:\git\codestrong-a2\jscraper-azure-poster\target\azure-functions\jscraper-azure-poster-20180310145647740\jscraper-azure-poster-0.0.1-SNAPSHOT.jar"::"biz.codestrong.azure.AzureQueuePoster.post")

但我需要它是DEBUG或更低。在我的功能代码中,我有一个这样的一行:

context.getLogger().log(Level.FINE, "Created queue client " + queueClient);

此行永远不会打印。

0 个答案:

没有答案