| Author |
(B&S) Logging
|
Saheed Adepoju
Ranch Hand
Joined: Jun 23, 2004
Posts: 267
|
|
Hi all For the logging framework for the SCJD where do i place the output file?Or do i just place the output on the console?Thanks!
|
Saheed Adepoju<br />SCJP 1.4<br />SCJD (B&S..In progress)
|
 |
Jeff Haynes
Greenhorn
Joined: Nov 09, 2004
Posts: 11
|
|
Saheed, I allow them to specify the level of logging, and the type of logging (FileHandler,ConsoleHandler) on the setup dialog. -Jeff
|
If you build a man a fire, you warm him for a day. But if you set a man on fire, you warm him for the rest of his life.
|
 |
Jeff Haynes
Greenhorn
Joined: Nov 09, 2004
Posts: 11
|
|
And for the instance where they choose FileHandler I force them to choose a location for the log file. -Jeff
|
 |
Jan Groth
Ranch Hand
Joined: Feb 03, 2004
Posts: 456
|
|
i'd recommend that you check your assignment. mine did not give any instructions about logging. well, i was - and i bed you are too - not allowed to submit any extra configuration files. so deeper investigations are kind of obsolete in my eyes. for developing, configure logging the way you need it, for submitting, leave the configuration file away (and log into the working directory on standard log level..) hope it helps, jan
|
 |
Saheed Adepoju
Ranch Hand
Joined: Jun 23, 2004
Posts: 267
|
|
Hi all Yeah your inputs have greatly helped! And also the point where we arent supposed to extra files(configuration files)! I am using Max's approach to logging! I suppose i could just log unto the standard output!So i wouldnt log to any file but to the standard output(The Monitor) after i submit my assignment! [ December 21, 2005: Message edited by: Saheed Adepoju ]
|
 |
Ken Boyd
Ranch Hand
Joined: Dec 10, 2003
Posts: 329
|
|
|
Yes I am doing the same not logging into file but to standard output..
|
SCJP, SCWCD, SCBCD, SCJD, BB Java2 and JSP1.1
|
 |
Alan Morgan
Ranch Hand
Joined: Apr 18, 2005
Posts: 113
|
|
I am logging to the console and also to 5 files. 1 for each package (data,controller,gui and remote) and 1 for all packages. No configuration is available as you must not require the user to configure any files manually and I decided it didn't make sense to add it to the GUI as most users don't care. So if there is a problem there will be files available for each package and 1 for every log message.
|
 |
 |
|
|
subject: (B&S) Logging
|
|
|