Bug 1283194
Summary: | logViewer cannot show the log file generated by custom handler | ||
---|---|---|---|
Product: | [JBoss] JBoss Enterprise Application Platform 6 | Reporter: | Ranjith Pulluru <rpulluru> |
Component: | Logging | Assignee: | Panagiotis Sotiropoulos <psotirop> |
Status: | CLOSED NOTABUG | QA Contact: | Nikoleta Hlavickova <nziakova> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 6.4.4 | CC: | bbaranow, brian.stansberry, cdewolf, harshada, jperkins, psotirop |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2015-11-19 08:43:47 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Ranjith Pulluru
2015-11-18 12:35:08 UTC
This was done intentionally. The log files can only be read if they're a file-handler, periodic-rotating-file-handler, size-rotating-file-handler or periodic-size-rotating-handler resource. A custom-handler cannot be read via the log viewer. The relative-to path MUST be jboss.server.log.dir for the resource as well. That said in 6.4 there is a periodic-size-rotating-file-handler so you don't have to use a custom-handler for it. The add CLI command for the above: /subsystem=logging/periodic-size-rotating-file-handler=PERIODIC_SIZE:add(append=true, autoflush=true, level=INFO, named-formatter=PATTERN, rotate-size="500M", suffix=".yyyy-MM-dd", file={relative-to=jboss.server.log.dir, path="CustomHandler.log"}) Then you can read the resources: /subsystem=logging/log-file=CustomHandler.log:read-resource(include-runtime=true) |