ECJ-INTEREST-L Archives

July 2013

ECJ-INTEREST-L@LISTSERV.GMU.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

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

Print Reply
Subject:
From:
Sean Luke <[log in to unmask]>
Reply To:
ECJ Evolutionary Computation Toolkit <[log in to unmask]>
Date:
Wed, 17 Jul 2013 09:11:21 -0400
Content-Type:
text/plain
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