Logged In: NO
Browser: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT; AT&T WNS5.0 IE5.0.01)

I thought enableErrors() will override the statrtup
configuration.

/* from CodeControl.html:

The following functions control the run-time operation
of the Log Facility. These functions will override the
default configuration as well as the user properties
specified on the command line. These functions are
accessible only by Java, currently. There is also no
ability currently to alter the log format or perform
more advanced filtering at run-time.
public static void enableErrors(boolean);

*/

But, it doesn't look that way:

I have the following code:

import grace.log.*;
import grace.util.Properties;

public class TestJavaLog {
public static void main(String args[]) {
Log.enableErrors(true);
System.out.println("Log.errorsEnabled() = " +
Log.errorsEnabled());
Log.error("using Log.error()");
}
}

This works fine:

D:\log>java -Dlog.errors=true TestJavaLog
Log.errorsEnabled() = true
09/19/00 22:00:01(0.35):1: error: system.main.main:
TestJavaLog.main:37: using Log.error()

However if I pass false for log.errors, using
enableErrors(true) doesn't override the behaviour:

D:\log>java -Dlog.errors=false TestJavaLog
Log.errorsEnabled() = true

So my question is why? Is this a bug?

Thanx.

One note: if I use -Dlog=false errorsEnabled(true)
works.