Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Beginning Java and the fly likes I want to change this logLine format? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "I want to change this logLine format?" Watch "I want to change this logLine format?" New topic
Author

I want to change this logLine format?

Varuna Seneviratna
Ranch Hand

Joined: Jan 15, 2007
Posts: 167
I want to add the following

SUCCESSFUL_ACCESS=200, ACCESS_FORBIDDEN=403, DOCUMENT_NOT_FOUND=404

to the logLine created by the following code
Below are the four classes associated with this program.in addition to the information that is given now they are 1Accesses pre hour(0-23) 2 Accesses per day(days 1-31) and so on. I want to add using the above mentioned access status indicators how many accesses were successful and unsuccessful.This is from the book objects first with blueJ.Please explain to me how this can be done and how it is actually getting implemented.













Guide me how to do That?


Varuna

[ November 06, 2008: Message edited by: Varuna Seneviratna ]
[ November 06, 2008: Message edited by: Varuna Seneviratna ]

Varuna Seneviratna
fred rosenberger
lowercase baba
Bartender

Joined: Oct 02, 2003
Posts: 11314
    
  16



I doubt that's what you want, but it's what you asked for. Can you elaborate on exactly what you DO want?


There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
 
Don't get me started about those stupid light bulbs.
 
subject: I want to change this logLine format?