Curt Arnold wrote: > You define appenders named "stdout", "baz" and "foo", then you attach > appenders named
Thanks. I tried to edit the property file to protect the innocent, and mangled it. > Since "base" and "stripesfile" are not defined, the only place for the > messages to go is to "stdout". Actually, they were always going to one of the log files. But you pointed me in the right direction. Thanks My real problem was that Netbeans was putting the log4j.properties file in the sublibrary, and it was getting read first. > Since you are not setting additivity to false, all messages sent to > "com.foo.*" will be sent to stdout twice, once for its attachment at > "com.foo" and once for its attachment to the rootLogger. I've read and re-read the complete manual, and I think I get the concept of "additivity" but I don't understand how to control them in the properties file. Is there a source for more examples of log4j.properties files and options, syntax, etc? The manual has lots more on XML formats and controlling it from within Java than it has on simple properties. Even the Wiki seems to not have much (or much I can find) on properties files. Where possible, I much prefer good ol Java properties files. Thanks Pat -- Pat Farrell http://www.pfarrell.com/ --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
