Mercurial Hosting > luan
comparison src/org/eclipse/jetty/server/AsyncNCSARequestLog.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 | 3428c60d7cfc |
children |
comparison
equal
deleted
inserted
replaced
819:17bd0b170ed6 | 820:8e9db0bbf4f9 |
---|---|
17 // | 17 // |
18 | 18 |
19 package org.eclipse.jetty.server; | 19 package org.eclipse.jetty.server; |
20 | 20 |
21 import org.eclipse.jetty.util.BlockingArrayQueue; | 21 import org.eclipse.jetty.util.BlockingArrayQueue; |
22 import org.eclipse.jetty.util.log.Log; | 22 import org.slf4j.Logger; |
23 import org.eclipse.jetty.util.log.Logger; | 23 import org.slf4j.LoggerFactory; |
24 | 24 |
25 import java.io.IOException; | 25 import java.io.IOException; |
26 import java.util.concurrent.BlockingQueue; | 26 import java.util.concurrent.BlockingQueue; |
27 import java.util.concurrent.LinkedBlockingQueue; | 27 import java.util.concurrent.LinkedBlockingQueue; |
28 import java.util.concurrent.TimeUnit; | 28 import java.util.concurrent.TimeUnit; |
32 /** | 32 /** |
33 * An asynchronously writing NCSA Request Log | 33 * An asynchronously writing NCSA Request Log |
34 */ | 34 */ |
35 public class AsyncNCSARequestLog extends NCSARequestLog | 35 public class AsyncNCSARequestLog extends NCSARequestLog |
36 { | 36 { |
37 private static final Logger LOG = Log.getLogger(AsyncNCSARequestLog.class); | 37 private static final Logger LOG = LoggerFactory.getLogger(AsyncNCSARequestLog.class); |
38 private final BlockingQueue<String> _queue; | 38 private final BlockingQueue<String> _queue; |
39 private transient WriterThread _thread; | 39 private transient WriterThread _thread; |
40 private boolean _warnedFull; | 40 private boolean _warnedFull; |
41 | 41 |
42 public AsyncNCSARequestLog() | 42 public AsyncNCSARequestLog() |
87 AsyncNCSARequestLog.super.write(log); | 87 AsyncNCSARequestLog.super.write(log); |
88 } | 88 } |
89 } | 89 } |
90 catch (IOException e) | 90 catch (IOException e) |
91 { | 91 { |
92 LOG.warn(e); | 92 LOG.warn("",e); |
93 } | 93 } |
94 catch (InterruptedException e) | 94 catch (InterruptedException e) |
95 { | 95 { |
96 LOG.ignore(e); | 96 LOG.trace("",e); |
97 } | 97 } |
98 } | 98 } |
99 } | 99 } |
100 } | 100 } |
101 | 101 |