diff --git a/ethereumj-core/src/main/java/org/ethereum/core/Blockchain.java b/ethereumj-core/src/main/java/org/ethereum/core/Blockchain.java index 19d71454..39cda83f 100644 --- a/ethereumj-core/src/main/java/org/ethereum/core/Blockchain.java +++ b/ethereumj-core/src/main/java/org/ethereum/core/Blockchain.java @@ -25,7 +25,7 @@ public class Blockchain extends ArrayList { private static final long serialVersionUID = -143590724563460486L; - private static Logger logger = LoggerFactory.getLogger("Chain"); + private static Logger logger = LoggerFactory.getLogger("blockchain"); // to avoid using minGasPrice=0 from Genesis for the wallet private static long INITIAL_MIN_GAS_PRICE = 10 * SZABO.longValue(); diff --git a/ethereumj-core/src/main/java/org/ethereum/net/client/EthereumProtocolHandler.java b/ethereumj-core/src/main/java/org/ethereum/net/client/EthereumProtocolHandler.java index a28580a9..06cc6e50 100644 --- a/ethereumj-core/src/main/java/org/ethereum/net/client/EthereumProtocolHandler.java +++ b/ethereumj-core/src/main/java/org/ethereum/net/client/EthereumProtocolHandler.java @@ -37,7 +37,7 @@ import org.spongycastle.util.encoders.Hex; */ public class EthereumProtocolHandler extends ChannelInboundHandlerAdapter { - Logger logger = LoggerFactory.getLogger("Wire"); + Logger logger = LoggerFactory.getLogger("wire"); Timer chainAskTimer = new Timer(); int secToAskForChain = 1; diff --git a/ethereumj-core/src/main/java/org/ethereum/net/peerdiscovery/EthereumPeerTasterHandler.java b/ethereumj-core/src/main/java/org/ethereum/net/peerdiscovery/EthereumPeerTasterHandler.java index 6cc57450..afa8f275 100644 --- a/ethereumj-core/src/main/java/org/ethereum/net/peerdiscovery/EthereumPeerTasterHandler.java +++ b/ethereumj-core/src/main/java/org/ethereum/net/peerdiscovery/EthereumPeerTasterHandler.java @@ -28,7 +28,7 @@ import static org.ethereum.net.Command.*; */ public class EthereumPeerTasterHandler extends ChannelInboundHandlerAdapter { - Logger logger = LoggerFactory.getLogger("Wire"); + Logger logger = LoggerFactory.getLogger("wire"); Timer timer = null; private final static byte[] MAGIC_PREFIX = {(byte)0x22, (byte)0x40, (byte)0x08, (byte)0x91}; diff --git a/ethereumj-core/src/main/java/org/ethereum/vm/Program.java b/ethereumj-core/src/main/java/org/ethereum/vm/Program.java index 0038c653..0d6c1d50 100644 --- a/ethereumj-core/src/main/java/org/ethereum/vm/Program.java +++ b/ethereumj-core/src/main/java/org/ethereum/vm/Program.java @@ -16,7 +16,7 @@ import java.util.*; */ public class Program { - Logger logger = LoggerFactory.getLogger("VM"); + private Logger logger = LoggerFactory.getLogger("VM"); ProgramListener listener; Stack stack = new Stack(); diff --git a/ethereumj-core/src/main/java/org/ethereum/vm/VM.java b/ethereumj-core/src/main/java/org/ethereum/vm/VM.java index 3fe8632e..08dbf162 100644 --- a/ethereumj-core/src/main/java/org/ethereum/vm/VM.java +++ b/ethereumj-core/src/main/java/org/ethereum/vm/VM.java @@ -51,7 +51,7 @@ public class VM { static private BigInteger _32_ = BigInteger.valueOf(32); - private Logger logger = LoggerFactory.getLogger(VM.class); + private Logger logger = LoggerFactory.getLogger("VM"); public void step(Program program) { diff --git a/ethereumj-core/src/main/resources/log4j.properties b/ethereumj-core/src/main/resources/log4j.properties index 803316b7..2509cd31 100644 --- a/ethereumj-core/src/main/resources/log4j.properties +++ b/ethereumj-core/src/main/resources/log4j.properties @@ -12,6 +12,9 @@ log4j.logger.org.ethereum.net = FATAL log4j.logger.org.ethereum.net.peerdiscovery = WARN log4j.logger.java.nio = WARN log4j.logger.io.netty = FATAL -log4j.logger.org.ethereum.vm = DEBUG log4j.logger.org.ethereum.core = FATAL log4j.logger.wire = FATAL +log4j.logger.VM = FATAL +log4j.logger.main = FATAL +log4j.logger.state = FATAL +log4j.logger.blockchain = FATAL