Problem with Logger based on class instance!!!


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Problem with Logger based on class instance!!!

  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, 04:00 PM
  2. CLASS PROBLEM...PLEASE READ
    By RealGuru in forum .NET
    Replies: 4
    Last Post: 09-19-2002, 03:31 AM
  3. The Fragile Base Class Problem - Is it solved?
    By Thomas Eyde in forum .NET
    Replies: 10
    Last Post: 02-24-2002, 04: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, 07:19 PM
  5. Abstract class
    By Manika in forum Java
    Replies: 1
    Last Post: 09-06-2000, 02:13 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
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center