Results 1 to 3 of 3
  1. #1
    bertuz is offline Member
    Join Date
    Mar 2011
    Posts
    3
    Rep Power
    0

    Default advanced configuration of javalog using a class

    Hi everyone! :)
    I'm trying to set the java logging behaviour through a class, instead of load a .properties file.
    As the documentation says, it's doable:

    LogManager (Java 2 Platform SE v1.4.2)

    they talk about this in the preface. The problem is that I haven't understood what kind of class should be, how it should be structured and so forth... does anybody have an exmple about this? I can't find anything by googling :confused:

    Thanks!
    Matteo

    p.s.
    I know this way it's not a best practise, but it's more for my curiosity than other, and I wanna accomplish it by following this way.

  2. #2
    lovelesh is offline Senior Member
    Join Date
    Nov 2010
    Location
    Delhi
    Posts
    135
    Blog Entries
    1
    Rep Power
    0

    Smile

    Handler is the class, which provides you control over logging.
    You can associate one or more handlers with one Logger instance.

    Appenders from log4j is the other option if you want to use log4j library.

  3. #3
    bertuz is offline Member
    Join Date
    Mar 2011
    Posts
    3
    Rep Power
    0

    Default

    Hey thanks for replying but it's not what I would like! I'm already using that approach and it works. But try to have a look to the link I posted before. They talk about settings what we usually set through a .properties file. But in this case through a class! That's what I want :-)

    Thanks in advance

Similar Threads

  1. Advanced extends and implements
    By V1C3M4N in forum Advanced Java
    Replies: 15
    Last Post: 11-17-2010, 02:28 PM
  2. A good project in Advanced JAVA
    By vedarthk in forum Advanced Java
    Replies: 16
    Last Post: 08-08-2010, 09:21 PM
  3. Advanced Looping
    By nuggetman4 in forum New To Java
    Replies: 1
    Last Post: 05-10-2010, 07:54 AM
  4. Arrays Problem (Advanced Java...Need Help)
    By Zebra in forum New To Java
    Replies: 9
    Last Post: 05-02-2008, 02:26 AM
  5. JavaLog Analyser 20070507
    By levent in forum Java Software
    Replies: 0
    Last Post: 05-10-2007, 06:47 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •