I am attaching the contents of the Trivial.java file I have. It contains no 
references to
org.xml.sax, org.apache.trax nor org.apache.serialize. Regards, Ceki

At 19:10 06.03.2002 +0000, davout wrote:
>I'm looking at the 'trivial.java' file installed in the folder...
>
>         jakarta-log4j-1.2beta3\examples
>
>
>
>-----Original Message-----
>From: Ceki Gülcü [mailto:[EMAIL PROTECTED]]
>Sent: 06 March 2002 18:39
>To: Log4J Users List
>Subject: Re: Trying to run 'Trivial' example
>
>
>At 18:26 06.03.2002 +0000, you wrote:
> >I'm trying to make and run the Log4J 1.2 beta 3 example class 'Trivial'.
> >
> >Are here any docs available that list what other JARS are required to
> >complete this build?
> >
> >The 'Trivial' example source includes import lines for...
> >
> >         org.xml.sax.
> >         org.apacghe.trax.
> >         org.apache.serialize
> >
> >Where do I find the JARS for these??
>
>Huh? What file is this exactly? Thank you in advance, Ceki
>
>
>--
>Ceki Gülcü
>
>
>--
>To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
>
>--
>To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

--
Ceki Gülcü

package examples;


import org.apache.log4j.Category;
import org.apache.log4j.BasicConfigurator;
import org.apache.log4j.NDC;

/**
   View the <a href="doc-files/Trivial.java">source code</a> of this a
   trivial usage example. Running <code>java examples.Trivial</code>
   should output something similar to:

   <pre>
      0    INFO  [main] examples.Trivial (Client #45890) - Awake awake. Put on thy 
strength.
      15   DEBUG [main] examples.Trivial (Client #45890 DB) - Now king David was old.
      278  INFO  [main] examples.Trivial$InnerTrivial (Client #45890) - Entered foo.
      293  INFO  [main] examples.Trivial (Client #45890) - Exiting Trivial.   
   </pre>
   
   <p> The increasing numbers at the beginning of each line are the
   times elapsed since the start of the program. The string between
   the parentheses is the nested diagnostic context.

   <p>See {@link Sort} and {@link SortAlgo} for sligtly more elaborate
   examples.

   <p>Note thent class files for the example code is not included in
   any of the distributed log4j jar files. You will have to add the
   directory <code>/dir-where-you-unpacked-log4j/classes</code> to
   your classpath before trying out the examples.

 */
public class Trivial {

  static Category cat = Category.getInstance(Trivial.class.getName());

  public static void main(String[] args) {
    BasicConfigurator.configure();
    NDC.push("Client #45890"); 

    cat.info("Awake awake. Put on thy strength.");
    Trivial.foo();
    InnerTrivial.foo();
    cat.info("Exiting Trivial.");    
  }

  static
  void foo() {
    NDC.push("DB"); 
    cat.debug("Now king David was old.");    
    NDC.pop(); 
  }

  static class InnerTrivial {
    static  Category cat = Category.getInstance(InnerTrivial.class.getName());

    static    
    void foo() {
      cat.info("Entered foo."); 
    }
  }
}

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to