⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 logwriter.java

📁 Java的面向对象数据库系统的源代码
💻 JAVA
字号:
// You can redistribute this software and/or modify it under the terms of
// the Ozone Library License version 1 published by ozone-db.org.
//
// The original code and portions created by SMB are
// Copyright (C) 1997-2000 by SMB GmbH. All rights reserved.
//
// $Id: LogWriter.java,v 1.4 2002/09/18 06:54:18 per_nyfelt Exp $

package org.ozoneDB.util;


/**
 * @author <a href="http://www.softwarebuero.de/">SMB</a>
 * @version $Revision: 1.4 $Date: 2002/09/18 06:54:18 $
 */
public interface LogWriter {

    final static String LOG_FILE = "ozone.log";
    static final String LOG_CONFIG_FILE_NAME = "logging.properties";

    public final static int FATAL = OzoneDebugLevel.FATAL_INT;
    public final static int ERROR = OzoneDebugLevel.ERROR_INT;
    public final static int WARN = OzoneDebugLevel.WARN_INT;
    public final static int INFO = OzoneDebugLevel.INFO_INT;
    public final static int DEBUG = OzoneDebugLevel.DEBUG_INT;
    public final static int DEBUG1 = OzoneDebugLevel.DEBUG1_INT;
    public final static int DEBUG2 = OzoneDebugLevel.DEBUG2_INT;
    public final static int DEBUG3 = OzoneDebugLevel.DEBUG3_INT;
    
    /**
     * This method allows to quickly find out if there is any log target that
     * would receive entries of the specified level.
     */
    public boolean hasTarget( int level );
    
    //public void addLogTarget(String name, OutputStream _out, int _level );
    
    //public void addLogTarget( PrintWriter _writer, int _level, String name);
    
    public void newEntry( Object sender, String msg, int level );
        
    public void newEntry( Object sender, String msg, Throwable e, int level );
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -