Removed unnecessary hack to determine the logger name.

This commit is contained in:
Simone Bordet 2013-08-22 12:20:18 +02:00
parent 8f41e33938
commit c0ed8375d3
4 changed files with 4 additions and 4 deletions

View File

@ -26,7 +26,7 @@ import org.eclipse.jetty.util.log.Logger;
public abstract class HttpChannel
{
protected static final Logger LOG = Log.getLogger(new Object(){}.getClass().getEnclosingClass());
protected static final Logger LOG = Log.getLogger(HttpChannel.class);
private final AtomicReference<HttpExchange> exchange = new AtomicReference<>();
private final HttpDestination destination;

View File

@ -47,7 +47,7 @@ import org.eclipse.jetty.util.ssl.SslContextFactory;
public abstract class HttpDestination implements Destination, Closeable, Dumpable
{
protected static final Logger LOG = Log.getLogger(new Object(){}.getClass().getEnclosingClass());
protected static final Logger LOG = Log.getLogger(HttpDestination.class);
private final HttpClient client;
private final String scheme;

View File

@ -64,7 +64,7 @@ import org.eclipse.jetty.util.log.Logger;
*/
public abstract class HttpReceiver
{
protected static final Logger LOG = Log.getLogger(new Object(){}.getClass().getEnclosingClass());
protected static final Logger LOG = Log.getLogger(HttpReceiver.class);
private final AtomicReference<ResponseState> responseState = new AtomicReference<>(ResponseState.IDLE);
private final HttpChannel channel;

View File

@ -57,7 +57,7 @@ import org.eclipse.jetty.util.log.Logger;
*/
public abstract class HttpSender implements AsyncContentProvider.Listener
{
protected static final Logger LOG = Log.getLogger(new Object(){}.getClass().getEnclosingClass());
protected static final Logger LOG = Log.getLogger(HttpSender.class);
private final AtomicReference<RequestState> requestState = new AtomicReference<>(RequestState.QUEUED);
private final AtomicReference<SenderState> senderState = new AtomicReference<>(SenderState.IDLE);