-
Logging module & URL program
Hello All,
I have a couple of programming problems that I need some assistance with. Any help from you guys will be highly appreciated.
1) Need to create a logging module that is thread safe, that timestamps the log entries in GMT and rotates log files nightly at midnight
2) Need to write a program that accepts a series or URLs on the command-line, and prints the top 3 fastest URLs, along with their timing (for reading). It should not wait for any additional URLs to complete. For example:
$ java URLTester http://yahoo.com http://google.com http://microsoft.com http://mindspring.com http://download.com
http://google.com 30ms
http://mindspring.com 40ms
http://yahoo.com 2000ms
(and the program should end at this point... It should not wait for all URLs to complete)
Like I said, even if you can point me in the right direction with the above two examples, I will highly appreciate it.
Thanks,
Kunal Sathe
-
Hi!
1) See log4j
http://logging.apache.org/log4j/docs/
2) Why don't you want to execute a ping.exe program from your application?
Similar Threads
-
By divagoddess in forum C++
Replies: 5
Last Post: 08-14-2009, 03:12 PM
-
Replies: 0
Last Post: 07-05-2006, 10:36 AM
-
Replies: 0
Last Post: 07-05-2006, 10:31 AM
-
By pksrinivasan in forum Java
Replies: 15
Last Post: 07-28-2005, 11:14 AM
-
By Gordon Reichhardt in forum VB Classic
Replies: 2
Last Post: 01-08-2002, 10:06 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks