You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by kw...@apache.org on 2015/07/09 12:30:11 UTC

svn commit: r1690051 - in /qpid/java/trunk: broker-core/src/main/java/org/apache/qpid/server/logging/ broker-plugins/management-http/src/main/java/resources/js/qpid/management/logger/brokerlogger/syslog/ broker-plugins/management-http/src/main/java/res...

Author: kwall
Date: Thu Jul  9 10:30:10 2015
New Revision: 1690051

URL: http://svn.apache.org/r1690051
Log:
QPID-6630: [Java Broker] Add SyslogLogger for Broker and VirtualHost

work done by Lorenz Quack <qu...@gmail.com>

Added:
    qpid/java/trunk/broker-core/src/main/java/org/apache/qpid/server/logging/BrokerSyslogLogger.java
    qpid/java/trunk/broker-core/src/main/java/org/apache/qpid/server/logging/BrokerSyslogLoggerImpl.java
    qpid/java/trunk/broker-core/src/main/java/org/apache/qpid/server/logging/VirtualHostSyslogLogger.java
    qpid/java/trunk/broker-core/src/main/java/org/apache/qpid/server/logging/VirtualHostSyslogLoggerImpl.java
    qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/js/qpid/management/logger/brokerlogger/syslog/
    qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/js/qpid/management/logger/brokerlogger/syslog/add.js
    qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/js/qpid/management/logger/brokerlogger/syslog/show.js
    qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/js/qpid/management/logger/virtualhostlogger/syslog/
    qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/js/qpid/management/logger/virtualhostlogger/syslog/add.js
    qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/js/qpid/management/logger/virtualhostlogger/syslog/show.js
    qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/logger/syslog/
    qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/logger/syslog/add.html
    qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/logger/syslog/show.html

Added: qpid/java/trunk/broker-core/src/main/java/org/apache/qpid/server/logging/BrokerSyslogLogger.java
URL: http://svn.apache.org/viewvc/qpid/java/trunk/broker-core/src/main/java/org/apache/qpid/server/logging/BrokerSyslogLogger.java?rev=1690051&view=auto
==============================================================================
--- qpid/java/trunk/broker-core/src/main/java/org/apache/qpid/server/logging/BrokerSyslogLogger.java (added)
+++ qpid/java/trunk/broker-core/src/main/java/org/apache/qpid/server/logging/BrokerSyslogLogger.java Thu Jul  9 10:30:10 2015
@@ -0,0 +1,47 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+package org.apache.qpid.server.logging;
+
+
+import org.apache.qpid.server.model.BrokerLogger;
+import org.apache.qpid.server.model.ManagedAttribute;
+import org.apache.qpid.server.model.ManagedObject;
+
+@ManagedObject( category = false, type = BrokerSyslogLogger.TYPE)
+public interface BrokerSyslogLogger<X extends BrokerSyslogLogger<X>> extends BrokerLogger<X>
+{
+    String TYPE = "Syslog";
+
+    @ManagedAttribute( defaultValue = "localhost")
+    String getSyslogHost();
+
+    @ManagedAttribute( defaultValue = "514")
+    int getPort();
+
+    @ManagedAttribute( defaultValue = "Qpid \\(broker:${ancestor:broker:name}\\) %level [%thread] \\(%logger{2}\\) - %msg")
+    String getSuffixPattern();
+
+    @ManagedAttribute( defaultValue = "\t")
+    String getStackTracePattern();
+
+    @ManagedAttribute( defaultValue = "false")
+    boolean isThrowableExcluded();
+}

Added: qpid/java/trunk/broker-core/src/main/java/org/apache/qpid/server/logging/BrokerSyslogLoggerImpl.java
URL: http://svn.apache.org/viewvc/qpid/java/trunk/broker-core/src/main/java/org/apache/qpid/server/logging/BrokerSyslogLoggerImpl.java?rev=1690051&view=auto
==============================================================================
--- qpid/java/trunk/broker-core/src/main/java/org/apache/qpid/server/logging/BrokerSyslogLoggerImpl.java (added)
+++ qpid/java/trunk/broker-core/src/main/java/org/apache/qpid/server/logging/BrokerSyslogLoggerImpl.java Thu Jul  9 10:30:10 2015
@@ -0,0 +1,94 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+package org.apache.qpid.server.logging;
+
+import ch.qos.logback.classic.net.SyslogAppender;
+import ch.qos.logback.classic.spi.ILoggingEvent;
+import ch.qos.logback.core.Appender;
+import ch.qos.logback.core.Context;
+import org.apache.qpid.server.model.Broker;
+import org.apache.qpid.server.model.ManagedAttributeField;
+import org.apache.qpid.server.model.ManagedObjectFactoryConstructor;
+
+import java.util.Map;
+
+public class BrokerSyslogLoggerImpl extends AbstractBrokerLogger<BrokerSyslogLoggerImpl> implements BrokerSyslogLogger<BrokerSyslogLoggerImpl>
+{
+    @ManagedAttributeField
+    private String _syslogHost;
+    @ManagedAttributeField
+    private int _port;
+    @ManagedAttributeField
+    private String _suffixPattern;
+    @ManagedAttributeField
+    private String _stackTracePattern;
+    @ManagedAttributeField
+    private boolean _throwableExcluded;
+
+    @ManagedObjectFactoryConstructor
+    protected BrokerSyslogLoggerImpl(final Map<String, Object> attributes, Broker<?> broker)
+    {
+        super(attributes, broker);
+    }
+
+    @Override
+    public String getSyslogHost()
+    {
+        return _syslogHost;
+    }
+
+    @Override
+    public int getPort()
+    {
+        return _port;
+    }
+
+    @Override
+    public String getSuffixPattern()
+    {
+        return _suffixPattern;
+    }
+
+    @Override
+    public String getStackTracePattern()
+    {
+        return _stackTracePattern;
+    }
+
+    @Override
+    public boolean isThrowableExcluded()
+    {
+        return _throwableExcluded;
+    }
+
+    @Override
+    protected Appender<ILoggingEvent> createAppenderInstance(Context context)
+    {
+        SyslogAppender syslogAppender = new SyslogAppender();
+        syslogAppender.setSyslogHost(_syslogHost);
+        syslogAppender.setPort(_port);
+        syslogAppender.setSuffixPattern(_suffixPattern);
+        syslogAppender.setStackTracePattern(_stackTracePattern);
+        syslogAppender.setThrowableExcluded(_throwableExcluded);
+        syslogAppender.setFacility("USER");
+        return syslogAppender;
+    }
+}

Added: qpid/java/trunk/broker-core/src/main/java/org/apache/qpid/server/logging/VirtualHostSyslogLogger.java
URL: http://svn.apache.org/viewvc/qpid/java/trunk/broker-core/src/main/java/org/apache/qpid/server/logging/VirtualHostSyslogLogger.java?rev=1690051&view=auto
==============================================================================
--- qpid/java/trunk/broker-core/src/main/java/org/apache/qpid/server/logging/VirtualHostSyslogLogger.java (added)
+++ qpid/java/trunk/broker-core/src/main/java/org/apache/qpid/server/logging/VirtualHostSyslogLogger.java Thu Jul  9 10:30:10 2015
@@ -0,0 +1,46 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+package org.apache.qpid.server.logging;
+
+import org.apache.qpid.server.model.ManagedAttribute;
+import org.apache.qpid.server.model.ManagedObject;
+import org.apache.qpid.server.model.VirtualHostLogger;
+
+@ManagedObject( category = false, type = VirtualHostSyslogLogger.TYPE)
+public interface VirtualHostSyslogLogger<X extends VirtualHostSyslogLogger<X>> extends VirtualHostLogger<X>
+{
+    String TYPE = "Syslog";
+
+    @ManagedAttribute( defaultValue = "localhost")
+    String getSyslogHost();
+
+    @ManagedAttribute( defaultValue = "514")
+    int getPort();
+
+    @ManagedAttribute( defaultValue = "Qpid \\(vhost:${ancestor:virtualhost:name}\\) %level [%thread] \\(%logger{2}\\) - %msg")
+    String getSuffixPattern();
+
+    @ManagedAttribute( defaultValue = "\t")
+    String getStackTracePattern();
+
+    @ManagedAttribute( defaultValue = "false")
+    boolean isThrowableExcluded();
+}

Added: qpid/java/trunk/broker-core/src/main/java/org/apache/qpid/server/logging/VirtualHostSyslogLoggerImpl.java
URL: http://svn.apache.org/viewvc/qpid/java/trunk/broker-core/src/main/java/org/apache/qpid/server/logging/VirtualHostSyslogLoggerImpl.java?rev=1690051&view=auto
==============================================================================
--- qpid/java/trunk/broker-core/src/main/java/org/apache/qpid/server/logging/VirtualHostSyslogLoggerImpl.java (added)
+++ qpid/java/trunk/broker-core/src/main/java/org/apache/qpid/server/logging/VirtualHostSyslogLoggerImpl.java Thu Jul  9 10:30:10 2015
@@ -0,0 +1,94 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+package org.apache.qpid.server.logging;
+
+import ch.qos.logback.classic.net.SyslogAppender;
+import ch.qos.logback.classic.spi.ILoggingEvent;
+import ch.qos.logback.core.Appender;
+import ch.qos.logback.core.Context;
+import org.apache.qpid.server.model.ManagedAttributeField;
+import org.apache.qpid.server.model.ManagedObjectFactoryConstructor;
+import org.apache.qpid.server.model.VirtualHost;
+
+import java.util.Map;
+
+public class VirtualHostSyslogLoggerImpl extends AbstractVirtualHostLogger<VirtualHostSyslogLoggerImpl> implements VirtualHostSyslogLogger<VirtualHostSyslogLoggerImpl>
+{
+    @ManagedAttributeField
+    private String _syslogHost;
+    @ManagedAttributeField
+    private int _port;
+    @ManagedAttributeField
+    private String _suffixPattern;
+    @ManagedAttributeField
+    private String _stackTracePattern;
+    @ManagedAttributeField
+    private boolean _throwableExcluded;
+
+    @ManagedObjectFactoryConstructor
+    protected VirtualHostSyslogLoggerImpl(final Map<String, Object> attributes, VirtualHost<?,?,?> virtualHost)
+    {
+        super(attributes, virtualHost);
+    }
+
+    @Override
+    public String getSyslogHost()
+    {
+        return _syslogHost;
+    }
+
+    @Override
+    public int getPort()
+    {
+        return _port;
+    }
+
+    @Override
+    public String getSuffixPattern()
+    {
+        return _suffixPattern;
+    }
+
+    @Override
+    public String getStackTracePattern()
+    {
+        return _stackTracePattern;
+    }
+
+    @Override
+    public boolean isThrowableExcluded()
+    {
+        return _throwableExcluded;
+    }
+
+    @Override
+    protected Appender<ILoggingEvent> createAppenderInstance(Context context)
+    {
+        SyslogAppender syslogAppender = new SyslogAppender();
+        syslogAppender.setSyslogHost(_syslogHost);
+        syslogAppender.setPort(_port);
+        syslogAppender.setSuffixPattern(_suffixPattern);
+        syslogAppender.setStackTracePattern(_stackTracePattern);
+        syslogAppender.setThrowableExcluded(_throwableExcluded);
+        syslogAppender.setFacility("USER");
+        return syslogAppender;
+    }
+}

Added: qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/js/qpid/management/logger/brokerlogger/syslog/add.js
URL: http://svn.apache.org/viewvc/qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/js/qpid/management/logger/brokerlogger/syslog/add.js?rev=1690051&view=auto
==============================================================================
--- qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/js/qpid/management/logger/brokerlogger/syslog/add.js (added)
+++ qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/js/qpid/management/logger/brokerlogger/syslog/add.js Thu Jul  9 10:30:10 2015
@@ -0,0 +1,42 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+define(["dojo/dom",
+    "dojo/query",
+    "dojo/_base/array",
+    "dijit/registry",
+    "qpid/common/util",
+    "dojo/parser",
+    "dojo/text!logger/syslog/add.html",
+    "dojo/domReady!"],
+  function (dom, query, array, registry, util, parser, template)
+  {
+    var addSyslogLogger =
+    {
+      show: function(data)
+      {
+        data.containerNode.innerHTML = template;
+        return parser.parse(data.containerNode);
+      }
+    };
+
+    return addSyslogLogger;
+  }
+);

Added: qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/js/qpid/management/logger/brokerlogger/syslog/show.js
URL: http://svn.apache.org/viewvc/qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/js/qpid/management/logger/brokerlogger/syslog/show.js?rev=1690051&view=auto
==============================================================================
--- qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/js/qpid/management/logger/brokerlogger/syslog/show.js (added)
+++ qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/js/qpid/management/logger/brokerlogger/syslog/show.js Thu Jul  9 10:30:10 2015
@@ -0,0 +1,41 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+define(["qpid/common/util",
+    "dojo/text!logger/syslog/show.html",
+    "qpid/common/TypeTabExtension",
+    "dojo/domReady!"],
+  function (util, template, TypeTabExtension)
+  {
+    function BrokerSyslogLogger(params)
+    {
+      TypeTabExtension.call(this, params.containerNode, template, "BrokerLogger", "Syslog", params.metadata, params.data);
+    }
+
+    util.extend(BrokerSyslogLogger, TypeTabExtension);
+
+    BrokerSyslogLogger.prototype.update = function (restData)
+    {
+      TypeTabExtension.prototype.update.call(this, restData);
+    }
+
+    return BrokerSyslogLogger;
+  }
+);

Added: qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/js/qpid/management/logger/virtualhostlogger/syslog/add.js
URL: http://svn.apache.org/viewvc/qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/js/qpid/management/logger/virtualhostlogger/syslog/add.js?rev=1690051&view=auto
==============================================================================
--- qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/js/qpid/management/logger/virtualhostlogger/syslog/add.js (added)
+++ qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/js/qpid/management/logger/virtualhostlogger/syslog/add.js Thu Jul  9 10:30:10 2015
@@ -0,0 +1,42 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+define(["dojo/dom",
+    "dojo/query",
+    "dojo/_base/array",
+    "dijit/registry",
+    "qpid/common/util",
+    "dojo/parser",
+    "dojo/text!logger/syslog/add.html",
+    "dojo/domReady!"],
+  function (dom, query, array, registry, util, parser, template)
+  {
+    var addSyslogLogger =
+    {
+      show: function(data)
+      {
+        data.containerNode.innerHTML = template;
+        return parser.parse(data.containerNode);
+      }
+    };
+
+    return addSyslogLogger;
+  }
+);

Added: qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/js/qpid/management/logger/virtualhostlogger/syslog/show.js
URL: http://svn.apache.org/viewvc/qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/js/qpid/management/logger/virtualhostlogger/syslog/show.js?rev=1690051&view=auto
==============================================================================
--- qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/js/qpid/management/logger/virtualhostlogger/syslog/show.js (added)
+++ qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/js/qpid/management/logger/virtualhostlogger/syslog/show.js Thu Jul  9 10:30:10 2015
@@ -0,0 +1,41 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+define(["qpid/common/util",
+    "dojo/text!logger/syslog/show.html",
+    "qpid/common/TypeTabExtension",
+    "dojo/domReady!"],
+  function (util, template, TypeTabExtension)
+  {
+    function VirtualHostSyslogLogger(params)
+    {
+      TypeTabExtension.call(this, params.containerNode, template, "VirtualHostLogger", "Syslog", params.metadata, params.data);
+    }
+
+    util.extend(VirtualHostSyslogLogger, TypeTabExtension);
+
+    VirtualHostSyslogLogger.prototype.update = function (restData)
+    {
+      TypeTabExtension.prototype.update.call(this, restData);
+    }
+
+    return VirtualHostSyslogLogger;
+  }
+);

Added: qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/logger/syslog/add.html
URL: http://svn.apache.org/viewvc/qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/logger/syslog/add.html?rev=1690051&view=auto
==============================================================================
--- qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/logger/syslog/add.html (added)
+++ qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/logger/syslog/add.html Thu Jul  9 10:30:10 2015
@@ -0,0 +1,84 @@
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~   http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+
+<div>
+    <div class="infoPane" id="syslogLoggerWarning">Make sure the syslog daemon accepts remote logging.</div>
+    <div class="clear">
+        <div class="formLabel-labelCell tableContainer-labelCell">Syslog Host:</div>
+        <div class="formLabel-controlCell tableContainer-valueCell">
+            <input type="text" id="addLogger.syslogHost"
+                   data-dojo-type="dijit/form/ValidationTextBox"
+                   data-dojo-props="
+                              name: 'syslogHost',
+                              placeHolder: 'localhost',
+                              promptMessage: 'Enter the host where the syslog daemon is running',
+                              title: 'Enter the host where the syslog daemon is running'"/>
+        </div>
+    </div>
+    <div class="clear">
+        <div class="formLabel-labelCell tableContainer-labelCell">Port:</div>
+        <div class="formLabel-controlCell tableContainer-valueCell">
+            <input type="text" id="addLogger.port"
+                   data-dojo-type="dijit/form/NumberTextBox"
+                   data-dojo-props="
+                              name: 'port',
+                              placeHolder: '514',
+                              promptMessage: 'Enter the syslog port',
+                              title: 'Port on which to connect to the syslog daemon'"/>
+        </div>
+    </div>
+    <div class="clear">
+        <div class="formLabel-labelCell tableContainer-labelCell">Suffix Pattern:</div>
+        <div class="formLabel-controlCell tableContainer-valueCell">
+            <input type="text" id="addLogger.suffixPattern"
+                   data-dojo-type="dijit/form/ValidationTextBox"
+                   data-dojo-props="
+                              name: 'suffixPattern',
+                              placeHolder: 'Qpid (<parent_name>) %level [%thread] %logger %msg',
+                              promptMessage: 'Enter the suffix pattern',
+                              title: 'Specifies the format of the non-standardized part of the message sent to the syslog server'"/>
+        </div>
+    </div>
+    <div class="clear">
+        <div class="formLabel-labelCell tableContainer-labelCell">Stack Trace Pattern:</div>
+        <div class="formLabel-controlCell tableContainer-valueCell">
+            <input type="text" id="addLogger.stackTracePattern"
+                   data-dojo-type="dijit/form/ValidationTextBox"
+                   data-dojo-props="
+                              name: 'stackTracePattern',
+                              placeHolder: '\t',
+                              promptMessage: 'Enter the stack trace pattern',
+                              title: 'Allows the customization of the string appearing just before each stack trace line'"/>
+        </div>
+    </div>
+    <div class="clear">
+        <div class="formLabel-labelCell tableContainer-labelCell">Excluded Throwables:</div>
+        <div class="formLabel-controlCell tableContainer-valueCell">
+            <input type="checkbox" id="addLogger.throwableExcluded"
+                   data-dojo-type="dijit/form/CheckBox"
+                   data-dojo-props="
+                                  name: 'throwableExcluded',
+                                  required: false"/>
+            <div data-dojo-type="dijit/Tooltip"
+                 data-dojo-props="connectId: ['addLogger.throwableExcluded'],
+                                      label: 'If selected, stack trace data associated with a Throwable to be omitted'">
+            </div>
+        </div>
+    </div>
+</div>

Added: qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/logger/syslog/show.html
URL: http://svn.apache.org/viewvc/qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/logger/syslog/show.html?rev=1690051&view=auto
==============================================================================
--- qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/logger/syslog/show.html (added)
+++ qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/logger/syslog/show.html Thu Jul  9 10:30:10 2015
@@ -0,0 +1,42 @@
+<!--
+ -
+ - Licensed to the Apache Software Foundation (ASF) under one
+ - or more contributor license agreements.  See the NOTICE file
+ - distributed with this work for additional information
+ - regarding copyright ownership.  The ASF licenses this file
+ - to you under the Apache License, Version 2.0 (the
+ - "License"); you may not use this file except in compliance
+ - with the License.  You may obtain a copy of the License at
+ -
+ -   http://www.apache.org/licenses/LICENSE-2.0
+ -
+ - Unless required by applicable law or agreed to in writing,
+ - software distributed under the License is distributed on an
+ - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ - KIND, either express or implied.  See the License for the
+ - specific language governing permissions and limitations
+ - under the License.
+ -
+ -->
+<div>
+    <div class="clear">
+        <div class="formLabel-labelCell">Syslog Host:</div>
+        <div class="syslogHost formValue-valueCell"></div>
+    </div>
+    <div class="clear">
+        <div class="formLabel-labelCell">Syslog Port:</div>
+        <div class="port"></div>
+    </div>
+    <div class="clear">
+        <div class="formLabel-labelCell">Suffix Pattern:</div>
+        <div class="suffixPattern formValue-valueCell"></div>
+    </div>
+    <div class="clear">
+        <div class="formLabel-labelCell">Stack Trace Pattern:</div>
+        <div class="stackTracePattern formValue-valueCell"></div>
+    </div>
+    <div class="clear">
+        <div class="formLabel-labelCell">Exclude Throwables:</div>
+        <div class="throwableExcluded formValue-valueCell"></div>
+    </div>
+</div>



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org