Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

(B&S) Logging

 
Saheed Adepoju
Ranch Hand
Posts: 267
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
Jeff Haynes
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Saheed,

I allow them to specify the level of logging, and the type of logging (FileHandler,ConsoleHandler) on the setup dialog.


-Jeff
 
Jeff Haynes
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And for the instance where they choose FileHandler I force them to choose a location for the log file.


-Jeff
 
Jan Groth
Ranch Hand
Posts: 456
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 267
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 329
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes I am doing the same not logging into file but to standard output..
 
Alan Morgan
Ranch Hand
Posts: 113
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic