如何在 com.sun.enterprise.security.auth.realm.ldap.LDAPRealm 上启用日志记录?
我刚刚开始使用 GlassFish (3.1.1),尤其是配置 LDAPRealm。
我已经开始工作了,我已经开始查看领域的源代码,并注意到有很多对 _Logger 的调用,我真的很希望能够看到这些调用,主要是为了调试我的配置。
我所看到的一切似乎都表明我应该只需要将 om.sun.enterprise.security.auth.realm.ldap.LDAPRealm 添加到管理 web 应用程序中的 Logger 配置中,并设置级别,但即使我这样做并将级别设置为“FINEST”,我没有看到 LDAPRealm 的任何日志记录。我还尝试将更高级别的路径(例如“com.sun.enterprise.security.auth.realm.ldap”)放入 Logger 配置中,但仍然没有看到来自 LDAPRealm 代码的任何日志记录。
谁能告诉我需要做什么才能在 GlassFish 中启用此日志记录?
谢谢, 吉姆
I've just started working with GlassFish (3.1.1) and especially with configuring an LDAPRealm.
I have it kind of working, and I've started to look at the source code for the realm, and noted that there's a lot of calls to _Logger that I'd really like to be able to see, mainly for debugging my configuration.
Everything that I've seen seems to indicate that I should just need to add om.sun.enterprise.security.auth.realm.ldap.LDAPRealm to the Logger configuration in the admin webapp, and set the level, but even when I do that, and set the level to "FINEST", I don't see any logging for LDAPRealm. I've also tried putting the higher level path, e.g., "com.sun.enterprise.security.auth.realm.ldap" into the Logger configuration, but still don't see any logging from the LDAPRealm code.
Can anyone tell me what I need to do to enable this logging in GlassFish?
Thanks,
Jim
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
启用
enterprise.system.core.security
的日志记录。 Realm 类使用内部 _logger,它本身引用所谓的 LogDomains。LogDomain.java 内部内容如下:
Enable logging for
enterprise.system.core.security
. The Realm classes use the internal _logger, which itself refers to so-calledLogDomains
.Inside
LogDomain.java
is the following:添加为 JVM 参数...
另一种选择是在 Glassfish 管理控制台中
Another option is to add
as JVM parameter in the Glassfish Admin Console...