are you talking about logging during development or logging in your final submission?
if it is for the latter, take this into account:
i was not allowed to submit a configuration file for logging. so i favoured standard logging over hard-coded configuration, which means output of info-level and console.
passed with it, btw :-)
Joined: May 12, 2004
The question at hand was that once you initiated the application and have the logging enabled, it writes to the log file as well as displays on the console. Thats not the required behavior
Joined: Feb 03, 2004
yes, i got that. ;-)
but my point was: if you use anything else but standard-logging - how are you configuring it? as config files and vm-arguments are not an option, you would have to write something hardcoded, or not? how are you configuring the fileapender? how does it know where to write to, in which file?
being faced with this question, i decided to favor standard-logging over any hardcoded configuration...