bserdar/jcliff — pull request #30 by rbrackma (2014-12-18 15:03:20+00:00)
Title: adding custom-logger and syslog-logger rules

Try it with this JSON script :

(otherwise I also get a "No rules for diffs:add:/custom-handler.... could look at that)

```
{
"logging" => {
"async-handler" => {"ASYNC" => {
"enabled" => true,
"encoding" => undefined,
"filter" => undefined,
"filter-spec" => undefined,
"formatter" => "%d{HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n",
"level" => "ALL",
"name" => "ASYNC",
"overflow-action" => "BLOCK",
"queue-length" => 50,
"subhandlers" => [
"FILE-CUSTOM",
"SYSLOG-CUSTOM"
]
}},
"custom-handler" => {"FILE-CUSTOM" => {
"class" => "org.jboss.logmanager.handlers.PeriodicSizeRotatingFileHandler",
"enabled" => true,
"encoding" => undefined,
"filter" => undefined,
"filter-spec" => undefined,
"formatter" => "%d{HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%m%n",
"level" => "ALL",
"module" => "org.jboss.logmanager",
"name" => "FILE-CUSTOM",
"named-formatter" => undefined,
"properties" => {
"rotateSize" => "1024000",
"maxBackupIndex" => "20",
"suffix" => ".yyyy-MM-dd",
"fileName" => expression "${jboss.server.log.dir}/server.log"
}
}},
"pattern-formatter" => {
"PATTERN" => {
"color-map" => undefined,
"pattern" => "%d{HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n"
},
"COLOR-PATTERN" => {
"color-map" => undefined,
"pattern" => "%K{level}%d{HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n"
}
},
"root-logger" => {"ROOT" => {
"filter" => undefined,
"filter-spec" => undefined,
"handlers" => ["ASYNC"],
"level" => "INFO"
}},
"syslog-handler" => {"SYSLOG-CUSTOM" => {
"app-name" => undefined,
"enabled" => true,
"facility" => "local-use-2",
"hostname" => "$jboss.qualified.host.name-$jboss.node.name",
"level" => "INFO",
"port" => 514,
"server-address" => "localhost",
"syslog-format" => "RFC5424"
}}
}
}
```