-
Notifications
You must be signed in to change notification settings - Fork 25.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove dependency on slf4j for logging, create own internal abstracti…
…on, closes #146.
- Loading branch information
Showing
47 changed files
with
1,204 additions
and
415 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
83 changes: 83 additions & 0 deletions
83
.../elasticsearch/src/main/java/org/elasticsearch/transport/netty/NettyInternalESLogger.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
/* | ||
* Licensed to Elastic Search and Shay Banon under one | ||
* or more contributor license agreements. See the NOTICE file | ||
* distributed with this work for additional information | ||
* regarding copyright ownership. Elastic Search 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.elasticsearch.transport.netty; | ||
|
||
import org.elasticsearch.util.logging.ESLogger; | ||
import org.jboss.netty.logging.AbstractInternalLogger; | ||
|
||
/** | ||
* @author kimchy (shay.banon) | ||
*/ | ||
public class NettyInternalESLogger extends AbstractInternalLogger { | ||
|
||
private final ESLogger logger; | ||
|
||
public NettyInternalESLogger(ESLogger logger) { | ||
this.logger = logger; | ||
} | ||
|
||
@Override public boolean isDebugEnabled() { | ||
return logger.isDebugEnabled(); | ||
} | ||
|
||
@Override public boolean isInfoEnabled() { | ||
return logger.isInfoEnabled(); | ||
} | ||
|
||
@Override public boolean isWarnEnabled() { | ||
return logger.isWarnEnabled(); | ||
} | ||
|
||
@Override public boolean isErrorEnabled() { | ||
return logger.isErrorEnabled(); | ||
} | ||
|
||
@Override public void debug(String msg) { | ||
logger.debug(msg); | ||
} | ||
|
||
@Override public void debug(String msg, Throwable cause) { | ||
logger.debug(msg, cause); | ||
} | ||
|
||
@Override public void info(String msg) { | ||
logger.info(msg); | ||
} | ||
|
||
@Override public void info(String msg, Throwable cause) { | ||
logger.info(msg, cause); | ||
} | ||
|
||
@Override public void warn(String msg) { | ||
logger.warn(msg); | ||
} | ||
|
||
@Override public void warn(String msg, Throwable cause) { | ||
logger.warn(msg, cause); | ||
} | ||
|
||
@Override public void error(String msg) { | ||
logger.error(msg); | ||
} | ||
|
||
@Override public void error(String msg, Throwable cause) { | ||
logger.error(msg, cause); | ||
} | ||
} |
Oops, something went wrong.