DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

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

    Problem with Logger based on class instance!!!

    Hi All,

    I have a problem with the Java logger. In a class I am creating a non static logger and I am trying to attach a FileHandler to it which will create a new file in which I write the logging messages. For every instance of that class I am creating a new filehandler but logging is not done as intended based on class instance. I mean I find log of other class instances in the same File.I am creating log file with a particular ID which we assigned to clients and after creating that I am writing log of that instance of class to that file but I find log of other instances also in that log file(from other clients). Some one please help me

  2. #2
    Join Date
    Oct 2005
    Posts
    40
    1) Are you using loggin API in java.util?
    2) Posting some code will be helpful

    Regards,
    Mohit

Similar Threads

  1. Help with class/applet
    By none_none in forum Java
    Replies: 17
    Last Post: 04-28-2005, 03:00 PM
  2. CLASS PROBLEM...PLEASE READ
    By RealGuru in forum .NET
    Replies: 4
    Last Post: 09-19-2002, 02:31 AM
  3. The Fragile Base Class Problem - Is it solved?
    By Thomas Eyde in forum .NET
    Replies: 10
    Last Post: 02-24-2002, 03:04 PM
  4. How To Do It - Shared Class Variables Part III
    By Patrick Ireland in forum .NET
    Replies: 5
    Last Post: 05-10-2001, 06:19 PM
  5. Abstract class
    By Manika in forum Java
    Replies: 1
    Last Post: 09-06-2000, 01:13 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