Added: sling/trunk/bundles/commons/log/src/main/java/org/apache/sling/commons/log/logback/webconsole/TailerOptions.java URL: http://svn.apache.org/viewvc/sling/trunk/bundles/commons/log/src/main/java/org/apache/sling/commons/log/logback/webconsole/TailerOptions.java?rev=1764489&view=auto ============================================================================== --- sling/trunk/bundles/commons/log/src/main/java/org/apache/sling/commons/log/logback/webconsole/TailerOptions.java (added) +++ sling/trunk/bundles/commons/log/src/main/java/org/apache/sling/commons/log/logback/webconsole/TailerOptions.java Wed Oct 12 17:02:00 2016 @@ -0,0 +1,36 @@ +/* + * 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.sling.commons.log.logback.webconsole; + +public final class TailerOptions { + private final int numOfLines; + + public TailerOptions(int numOfLines) { + this.numOfLines = numOfLines; + } + + public boolean tailAll() { + return numOfLines < 0; + } + + public int getNumOfLines() { + return numOfLines; + } +}
Propchange: sling/trunk/bundles/commons/log/src/main/java/org/apache/sling/commons/log/logback/webconsole/TailerOptions.java ------------------------------------------------------------------------------ svn:eol-style = native Added: sling/trunk/bundles/commons/log/src/main/java/org/apache/sling/commons/log/logback/webconsole/package-info.java URL: http://svn.apache.org/viewvc/sling/trunk/bundles/commons/log/src/main/java/org/apache/sling/commons/log/logback/webconsole/package-info.java?rev=1764489&view=auto ============================================================================== --- sling/trunk/bundles/commons/log/src/main/java/org/apache/sling/commons/log/logback/webconsole/package-info.java (added) +++ sling/trunk/bundles/commons/log/src/main/java/org/apache/sling/commons/log/logback/webconsole/package-info.java Wed Oct 12 17:02:00 2016 @@ -0,0 +1,31 @@ +/* + * 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. + */ + +/** + * Provides configuration support for the Logback based logging in Sling + * + * @version 1.0 + */ +@Version("1.0") +@Export(optional = "provide:=true") +package org.apache.sling.commons.log.logback.webconsole; + +import aQute.bnd.annotation.Export; +import aQute.bnd.annotation.Version; + Propchange: sling/trunk/bundles/commons/log/src/main/java/org/apache/sling/commons/log/logback/webconsole/package-info.java ------------------------------------------------------------------------------ svn:eol-style = native Modified: sling/trunk/bundles/commons/log/src/test/java/org/apache/sling/commons/log/logback/integration/LogTestBase.java URL: http://svn.apache.org/viewvc/sling/trunk/bundles/commons/log/src/test/java/org/apache/sling/commons/log/logback/integration/LogTestBase.java?rev=1764489&r1=1764488&r2=1764489&view=diff ============================================================================== --- sling/trunk/bundles/commons/log/src/test/java/org/apache/sling/commons/log/logback/integration/LogTestBase.java (original) +++ sling/trunk/bundles/commons/log/src/test/java/org/apache/sling/commons/log/logback/integration/LogTestBase.java Wed Oct 12 17:02:00 2016 @@ -127,11 +127,6 @@ public abstract class LogTestBase { return mavenBundle("org.apache.felix", "org.apache.felix.configadmin").versionAsInProject(); } - protected static Option webSupport() { - return composite(mavenBundle("org.apache.felix", "org.apache.felix.http.bundle").versionAsInProject(), - systemProperty("org.osgi.service.http.port").value(getServerPort())); - } - protected Option addExtraOptions() { return new DefaultCompositeOption(); } @@ -147,8 +142,4 @@ public abstract class LogTestBase { // dont care } } - - protected static String getServerPort() { - return System.getProperty(HTTP_PORT_PROP, DEFAULT_PORT); - } }