Skip to content
Permalink
Browse files
Use slf4j for helix
  • Loading branch information
zhan849 authored and junkaixue committed Jan 25, 2018
1 parent 37249b0 commit f8a0f320a4ec4fb4d4f107d65131d903a09a297a
Show file tree
Hide file tree
Showing 297 changed files with 1,030 additions and 660 deletions.
@@ -37,6 +37,12 @@ under the License.
<artifact name="helix-admin-webapp" type="jar" ext="jar" conf="master"/>
</publications>
<dependencies>
<dependency org="org.slf4j" name="slf4j-api" rev="1.7.25" force="true" conf="compile->compile(*),master(*);runtime->runtime(*)">
<artifact name="slf4j-api" ext="jar"/>
</dependency>
<dependency org="org.slf4j" name="slf4j-log4j12" rev="1.7.14" force="true" conf="compile->compile(*),master(*);runtime->runtime(*)">
<artifact name="slf4j-log4j12" ext="ivy"/>
</dependency>
<dependency org="org.apache.helix" name="helix-core" rev="0.6.10-SNAPSHOT" force="true" conf="compile->compile(*),master(*);runtime->runtime(*)"/>
<dependency org="org.restlet.jse" name="org.restlet" rev="2.2.1" force="true" conf="compile->compile(*),master(*);runtime->runtime(*)"/>
<dependency org="org.codehaus.jackson" name="jackson-core-asl" rev="1.8.5" force="true" conf="compile->compile(*),master(*);runtime->runtime(*)"/>
@@ -34,14 +34,24 @@ under the License.
org.apache.helix*,
org.codehaus.jackson*,
org.apache.commons.cli*,
org.apache.log4j,
org.restlet*,
org.slf4j*;version="[1.6,2)",
*
</osgi.import>
<osgi.export>org.apache.helix.webapp*;version="${project.version};-noimport:=true</osgi.export>
</properties>

<dependencies>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.7.25</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<version>1.7.14</version>
</dependency>
<dependency>
<groupId>org.apache.helix</groupId>
<artifactId>helix-core</artifactId>
@@ -23,13 +23,14 @@
import org.apache.helix.manager.zk.ZNRecordSerializer;
import org.apache.helix.manager.zk.ZkClient;
import org.apache.helix.webapp.resources.ResourceUtil;
import org.apache.log4j.Logger;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.restlet.Component;
import org.restlet.Context;
import org.restlet.data.Protocol;

public class HelixAdminWebApp {
public final Logger LOG = Logger.getLogger(HelixAdminWebApp.class);
public final Logger LOG = LoggerFactory.