Unable to add new logger with handler via CLI in JBoss EAP 6
Issue
- Problems defining a log handler. Defined a JSF default log with following CLI commands:
/subsystem=logging/custom-handler=Example:add(class=test.ExampleHandler,module=ex.test.logging,level=DEBUG,formatter="%d{dd-MM-yyyy HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n",properties={"basePath" =>"${JBOSS_ROOT_LOG}","autoflush" =>"true","maxBackupIndex" =>"30","maxFileSize" =>"10240"})
/subsystem=logging/logger=ex.test:add(level=ERROR,handlers=[handler=>Example],use-parent-handlers=false)
- When we are running the second command of above two commands, the JBoss EAP prompts the ERROR message as follows:
[standalone@localhost:9999 subsystem=mail] /subsystem=logging/logger=ex.test:add(level=ERROR,handlers=[handler=>Example],use-parent-handlers=false)
{
"outcome" => "failed",
"failure-description" => "JBAS014688: Wrong input for handlers. Expected [STRING] but it was PROPERTY",
"rolled-back" => true,
"response-headers" => {"process-state" => "reload-required"}
}
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 6.4
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.