Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Source code: com/voytechs/html/util/LogFacility.java


1   /*
2    * File: LogFacility.java
3    * Auth: Mark Bednarczyk
4    * Date: DATE
5    *   Id: $Id: LogFacility.java,v 1.1.1.1 2002/01/23 23:52:46 voytechs Exp $
6    ********************************************
7    * $Log: LogFacility.java,v $
8    * Revision 1.1.1.1  2002/01/23 23:52:46  voytechs
9    * Initial public release, BETA 1.0 - voytechs
10   *
11   */
12  package com.voytechs.html.util;
13  
14  import java.lang.*;
15  import java.util.*;
16  import java.io.*;
17  import java.net.*;
18  
19  /**
20   * 
21   */
22  public class LogFacility {
23    /* Internal attributes */
24  
25    public static PrintWriter log = null;
26    public static PrintWriter err = null;
27  
28    static {
29      try {
30        log = new PrintWriter(new FileWriter("/tmp/servlet.log", true), true);
31        err = new PrintWriter(new FileWriter("/tmp/servlet-err.log", true), true);
32      }
33      catch(IOException e) {
34        System.err.println(e);
35      }
36    }
37  
38    /**
39     * Test function for LogFacility
40     * @param args command line arguments
41     */
42    public static void main(String [] args) {
43    }
44  
45  } /* END OF: LogFacility */