Skip to content

Commit

Permalink
[java] Allowing a subclass to use its own logger
Browse files Browse the repository at this point in the history
  • Loading branch information
barancev committed Nov 10, 2020
1 parent a2b9d24 commit 8bde622
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
*/
public abstract class RemoteSession implements ActiveSession {

protected final static Logger LOG = Logger.getLogger(ActiveSession.class.getName());
private static final Logger LOG = Logger.getLogger(ActiveSession.class.getName());

private final SessionId id;
private final Dialect downstream;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,16 @@
import java.util.function.Function;
import java.util.function.Predicate;
import java.util.logging.Level;
import java.util.logging.Logger;

import javax.management.MalformedObjectNameException;
import javax.management.ObjectName;

@ManagedService
public class ServicedSession extends RemoteSession {

private static final Logger LOG = Logger.getLogger(ServicedSession.class.getName());

private final DriverService service;

public ServicedSession(
Expand Down

0 comments on commit 8bde622

Please sign in to comment.