KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > ozoneDB > util > LogWriter


1 // You can redistribute this software and/or modify it under the terms of
2
// the Ozone Library License version 1 published by ozone-db.org.
3
//
4
// The original code and portions created by SMB are
5
// Copyright (C) 1997-2000 by SMB GmbH. All rights reserved.
6
//
7
// $Id: LogWriter.java,v 1.4 2002/09/18 06:54:18 per_nyfelt Exp $
8

9 package org.ozoneDB.util;
10
11
12 /**
13  * @author <a HREF="http://www.softwarebuero.de/">SMB</a>
14  * @version $Revision: 1.4 $Date: 2002/09/18 06:54:18 $
15  */

16 public interface LogWriter {
17
18     final static String JavaDoc LOG_FILE = "ozone.log";
19     static final String JavaDoc LOG_CONFIG_FILE_NAME = "logging.properties";
20
21     public final static int FATAL = OzoneDebugLevel.FATAL_INT;
22     public final static int ERROR = OzoneDebugLevel.ERROR_INT;
23     public final static int WARN = OzoneDebugLevel.WARN_INT;
24     public final static int INFO = OzoneDebugLevel.INFO_INT;
25     public final static int DEBUG = OzoneDebugLevel.DEBUG_INT;
26     public final static int DEBUG1 = OzoneDebugLevel.DEBUG1_INT;
27     public final static int DEBUG2 = OzoneDebugLevel.DEBUG2_INT;
28     public final static int DEBUG3 = OzoneDebugLevel.DEBUG3_INT;
29     
30     /**
31      * This method allows to quickly find out if there is any log target that
32      * would receive entries of the specified level.
33      */

34     public boolean hasTarget( int level );
35     
36     //public void addLogTarget(String name, OutputStream _out, int _level );
37

38     //public void addLogTarget( PrintWriter _writer, int _level, String name);
39

40     public void newEntry( Object JavaDoc sender, String JavaDoc msg, int level );
41         
42     public void newEntry( Object JavaDoc sender, String JavaDoc msg, Throwable JavaDoc e, int level );
43 }
44
Popular Tags