Skip to content

Commit

Permalink
fixes #25 add a system property to redirect Undertow logs to slf4j
Browse files Browse the repository at this point in the history
  • Loading branch information
stevehu committed Feb 8, 2017
1 parent d44b786 commit 82ae0e5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ protected MetricRegistry(ConcurrentMap<MetricName, Metric> metricsMap) {
* @param name name
* @param metric metric
* @return {@code metric}
* @exception IllegalAccessException illegal access exception
* @see #register(MetricName, Metric)
*/
@SuppressWarnings("unchecked")
Expand Down
2 changes: 2 additions & 0 deletions server/src/main/java/com/networknt/server/Server.java
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ public class Server {

public static void main(final String[] args) {
logger.info("server starts");
// setup system property to redirect logs to logback.
System.setProperty("org.jboss.logging.provider", "slf4j");
start();
}

Expand Down

0 comments on commit 82ae0e5

Please sign in to comment.