Logger configuration improve

This commit is contained in:
romanman 2014-06-07 23:31:25 +01:00
parent bee4ea0771
commit f26ad508df
6 changed files with 9 additions and 6 deletions

View File

@ -25,7 +25,7 @@ public class Blockchain extends ArrayList<Block> {
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();

View File

@ -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;

View File

@ -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};

View File

@ -16,7 +16,7 @@ import java.util.*;
*/
public class Program {
Logger logger = LoggerFactory.getLogger("VM");
private Logger logger = LoggerFactory.getLogger("VM");
ProgramListener listener;
Stack<DataWord> stack = new Stack<DataWord>();

View File

@ -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) {

View File

@ -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