设置作业运行的日志级别

huangapple go评论57阅读模式
英文:

Setting log level for JobRunr

问题

我正在使用JobRunr框架,但无法设置日志级别,默认为"DEBUG"。

进行了谷歌研究,但没有找到解决方法。

这是我初始化JobRunr的方式:

JobRunr.configure().useStorageProvider(new InMemoryStorageProvider()).useBackgroundJobServer().initialize();

英文:

I am using the JobRunr framework, but cannot set the log level, which is "DEBUG" by default.

Did Google research, but to no avail.

This is how I initialize JobRunr:

JobRunr.configure().useStorageProvider(new InMemoryStorageProvider()).useBackgroundJobServer().initialize();

答案1

得分: 0

JobRunr使用您使用SLF4J设置的默认日志级别。

如果您添加SLF4J实现(例如logback),您可以使用logback.xml或通过spring boot进行配置。

英文:

JobRunr uses the default log level you setup using SLF4J.

If you add a SLF4J implementation (e.g. logback), you can configure everything using logback.xml or via spring boot.

huangapple
  • 本文由 发表于 2023年3月15日 19:16:45
  • 转载请务必保留本文链接:https://go.coder-hub.com/75743974.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定