testlog4j.java

来自「pl/sql中记log的函数」· Java 代码 · 共 40 行

JAVA
40
字号
package log4plsql.backgroundProcess;


/*
 * Copyright (C) LOG4PLSQL project team. All rights reserved.
 *
 * This software is published under the terms of the The LOG4PLSQL 
 * Software License, a copy of which has been included with this
 * distribution in the LICENSE.txt file.  
 * see: <http://log4plsql.sourceforge.net>  */
 
 
import org.apache.log4j.Logger;
import org.apache.log4j.Level;

import org.apache.log4j.BasicConfigurator;

/**
 * Not use it's only a sample test program for a http://jakarta.apache.org/log4j <br>
 * who use by log4plsql 
 * @author 	guillaume Moulard 
 * @version 	1.0   
 * @since       LOG4PLSQL V2.0b
 * 
 */
public class TestLog4j 
{

  static Logger logger = Logger.getLogger("gg");

  public static void main(String[] args)
  {
    TestLog4j testLog4j = new TestLog4j();
    
    BasicConfigurator.configure();
       
    logger.log( Level.DEBUG, "Log a Level.INFO for test");

  }
}

⌨️ 快捷键说明

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