DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 2006
    Posts
    2

    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

  2. #2
    Join Date
    Sep 2006
    Posts
    68
    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

  1. soft drink Vending machine program
    By divagoddess in forum C++
    Replies: 5
    Last Post: 08-14-2009, 03:12 PM
  2. Re: remainder of WebCrawler Program
    By bdjos1 in forum Java
    Replies: 0
    Last Post: 07-05-2006, 10:36 AM
  3. WebCrawler program not working properly
    By bdjos1 in forum Java
    Replies: 0
    Last Post: 07-05-2006, 10:31 AM
  4. Replies: 15
    Last Post: 07-28-2005, 11:14 AM
  5. Please help with running executable vb program.
    By Gordon Reichhardt in forum VB Classic
    Replies: 2
    Last Post: 01-08-2002, 10:06 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


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


Sponsored Links