Mercurial Hosting > luan
diff src/org/eclipse/jetty/server/NCSARequestLog.java @ 820:8e9db0bbf4f9
remove org.eclipse.jetty.util.log and upgrade slf4j
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Tue, 13 Sep 2016 23:13:06 -0600 |
parents | 07c82fabc46b |
children | 2afcb04f56a4 |
line wrap: on
line diff
--- a/src/org/eclipse/jetty/server/NCSARequestLog.java Fri Sep 09 17:10:47 2016 -0600 +++ b/src/org/eclipse/jetty/server/NCSARequestLog.java Tue Sep 13 23:13:06 2016 -0600 @@ -33,8 +33,8 @@ import org.eclipse.jetty.util.RolloverFileOutputStream; import org.eclipse.jetty.util.StringUtil; import org.eclipse.jetty.util.component.AbstractLifeCycle; -import org.eclipse.jetty.util.log.Log; -import org.eclipse.jetty.util.log.Logger; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; /** * This {@link RequestLog} implementation outputs logs in the pseudo-standard @@ -52,7 +52,7 @@ */ public class NCSARequestLog extends AbstractLifeCycle implements RequestLog { - private static final Logger LOG = Log.getLogger(NCSARequestLog.class); + private static final Logger LOG = LoggerFactory.getLogger(NCSARequestLog.class); private static ThreadLocal<StringBuilder> _buffers = new ThreadLocal<StringBuilder>() { @Override @@ -587,7 +587,7 @@ } catch (IOException e) { - LOG.warn(e); + LOG.warn("",e); } } @@ -699,7 +699,7 @@ } catch (IOException e) { - LOG.ignore(e); + LOG.trace("",e); } if (_out != null && _closeOut) try @@ -708,7 +708,7 @@ } catch (IOException e) { - LOG.ignore(e); + LOG.trace("",e); } _out = null;