ECJ-INTEREST-L Archives

July 2013

ECJ-INTEREST-L@LISTSERV.GMU.EDU

Options: Use Proportional Font
Show HTML Part by Default
Condense Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Content-Type:
text/plain; charset="iso-8859-1"
Date:
Wed, 17 Jul 2013 09:11:21 -0400
Reply-To:
ECJ Evolutionary Computation Toolkit <[log in to unmask]>
Subject:
From:
Sean Luke <[log in to unmask]>
Content-Transfer-Encoding:
8bit
In-Reply-To:
MIME-Version:
1.0 (Apple Message framework v1085)
Sender:
ECJ Evolutionary Computation Toolkit <[log in to unmask]>
Parts/Attachments:
text/plain (24 lines)
On Jul 16, 2013, at 7:15 PM, André Pinz Borges wrote:

> I would like to disable the console messages that ECJ prints when running, more precisally this message. How can I do this??

There's no way to do it via parameters at this time: we always just redirected to /dev/null.  But you can get rid of all output to stderr and stdout, including the messages below, by changing the buildOutput() function in ec.Evolve to:

    public static Output buildOutput()
        {
        Output output;
        output = new Output(true);
        output.addLog(ec.util.Log.D_STDOUT,false);
        output.addLog(ec.util.Log.D_STDERR,true);

	// here we muzzle the stdout and sterr -- Sean
	output.getLog(0).muzzle = true;
	output.getLog(1).muzzle = true;
                
        return output;
        }

We oughta do a parameterizable version of that.

Sean

ATOM RSS1 RSS2