cobol - java 控制台输出

发布于 2024-09-24 05:09:58 字数 174 浏览 2 评论 0原文

嗨,

我有一个使用 log4j 的 jar,它只有一个文件附加器。

如果我从 eclipse 或 Windows 命令行运行它,它工作正常,但如果我从 cobol 调用 jar,记录器也会打印在控制台中。

我猜 cobol 是问题所在,我怎样才能停用控制台日志,

谢谢!

HI,

I have a jar using log4j, it has only a file appender.

If I run it from eclipse or from windows command line it works fine, but if I call the jar from cobol the logger is printed in the console too.

I guess cobol is the problem, how could I deactivate the console log

thx a lot!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

仄言 2024-10-01 05:09:58

如果环境有自己的 log4j 实现(由您的代码而不是您自带的 log4j 调用),这通常是类加载器问题。

添加有关您的环境的详细信息。

This is usually a classloader issue if the environment has its own log4j implementation which is called by your code instead of the log4j you bring with you.

Add details about your environment.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文