`
zenius
  • 浏览: 55823 次
  • 性别: Icon_minigender_1
社区版块
存档分类
最新评论

Base Class Sample

    博客分类:
  • Java
阅读更多
    protected final transient Log log = LogFactory.getLog(getClass());


<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">

<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">

    <appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender">
        <layout class="org.apache.log4j.PatternLayout">
            <param name="ConversionPattern"
                value="[mod-spring] %p [%t] %c{1}.%M(%L) | %m%n"/>
        </layout>
    </appender>

    <logger name="net.sf.ehcache">
        <level value="ERROR"/>
    </logger>

    <!-- Suppress success logging from InteractiveAuthenticationSuccessEvent -->
    <logger name="org.springframework.security">
        <level value="ERROR"/>
    </logger>

    <logger name="org.apache">
        <level value="WARN"/>
    </logger>

    <logger name="org.apache.velocity">
        <level value="FATAL"/>
    </logger>

    <logger name="org.hibernate">
        <level value="WARN"/>
    </logger>
  
    <!--logger name="org.hibernate.SQL">
        <level value="DEBUG"/>
    </logger-->

    <logger name="org.springframework">
        <level value="WARN"/>
    </logger>

    <!-- Suppress warnings from Commons Validator -->
    <logger name="org.apache.commons.validator.ValidatorResources">
        <level value="ERROR"/>
    </logger>

    <!-- Suppress invalid warning messages from JSF -->
    <logger name="org.apache.myfaces.shared_impl.renderkit.html">
        <level value="ERROR"/>
    </logger>

    <logger name="org.appfuse">
        <level value="INFO"/>
    </logger>
    
    <logger name="org.sonatype.mavenbook">
        <level value="DEBUG"/>
    </logger>

    <root>
        <level value="WARN"/>
        <appender-ref ref="CONSOLE"/>
    </root>

</log4j:configuration>



分享到:
评论

相关推荐

    DirectShow BaseClass

    7. **媒体样本处理**:BaseClass也提供了处理Media Sample的基本功能,包括样本的分配、复制和释放,这是媒体数据传输的关键环节。 在具体开发过程中,开发者通常会继承BaseClass的某个子类,如CBaseFilter、...

    NHibernate 2.0.1 + Movies + Sample Source Part1

    Persistent classes do not need to implement any interface or inherit from a special base class. This makes it possible to design the business logic using plain .NET (CLR) objects and object-oriented ...

    Addison.Wesley.dot.NET.Framework.Standard.Library.Annotated.Reference.Volume.1.Mar.2004.FIXED [CHM]

    Edited by a Lead Program Manager on Microsoft's .NET Framework team, .NET Framework Standard Library Annotated Reference, Volume 1, is the definitive reference for the .NET Framework base class ...

    New NHibernate + Sample Source Part2

    Persistent classes do not need to implement any interface or inherit from a special base class. This makes it possible to design the business logic using plain .NET (CLR) objects and object-oriented ...

    New NHibernate + Sample Source Part1

    Persistent classes do not need to implement any interface or inherit from a special base class. This makes it possible to design the business logic using plain .NET (CLR) objects and object-oriented ...

    NHibernate 2.0.1 + Movies + Sample Source Part2

    Persistent classes do not need to implement any interface or inherit from a special base class. This makes it possible to design the business logic using plain .NET (CLR) objects and object-oriented ...

    Statistics.Inference.Class.Sample.R

    标题 "Statistics.Inference.Class.Sample.R" 暗示这是一个关于统计推断的 R 语言编程课程的示例代码集合。这个课程可能涵盖了概率论、假设检验、置信区间估计等核心概念,通过 R 语言来实现这些统计方法。让我们...

    WCF Sample code 1

    public class CalculatorService : ICalculator { public double Add(double num1, double num2) { return num1 + num2; } // 其他操作的实现... } ``` - **配置服务主机(Service Host)**: 使用`ServiceHost...

    adobe 笔试题 及部分答案

    class Base { public: Base() { println("Base::Base()"); Virt(); } void f() { println("Base::f()"); Virt(); } virtual void virt() { println("Base()::virt()"); } }; class Derived : public Base { ...

    C#Sample .NET体系结构

    除了上述核心概念之外,.NET Framework还包括其他重要特性,如程序集(Assembly)、命名空间(Namespace)和.NET基类库(Base Class Library, BCL)等。程序集是.NET中的基本部署单元,包含了一系列相关的资源;命名...

    串口通讯控件

    Base Class Library for RS232 Communications. Ref: "Serial Comm: Use P/Invoke to Develop a .NET Base Class Library for Serial Device Communications" John Hind, MSDN Magazine, Oct 2002. V1.3 February...

    wcf service sample code for c#

    public class MyService : IMyService { public string HelloWorld() { return "Hello, WCF!"; } } ``` 3. 配置服务:在服务的配置文件中指定服务的地址、绑定和合同。例如: ```xml &lt;baseAddresses&gt; ...

    SampleProject

    在SampleProject中,可能会有`class Derived : public Base`这样的代码,表示Derived类是从Base类派生的。 3. 多态: 多态是C++面向对象特性的重要组成部分,它允许不同类型的对象对同一消息做出不同的响应。C++...

    ASIO SDK 2.3.2

    asiodrvr.cpp - ASIO driver class base definition combase.h combase.cpp - COM base definitions (PC only) dllentry.cpp - DLL functions (PC only) register.cpp - driver self registration functionality ...

    android-boilerplate:使用此示例应用程序启动您的项目,并确保您遵循MVC模式

    public class Sample extends Base { public Sample () { } public JSONObject toJSON () { JSONObject json = new JSONObject (); return json; } } 控制器 简单控制器 public class SampleController ...

    Effective C#

    **Item 13: Use Proper Initialization for Static Class Members** - **Importance:** Proper initialization ensures thread safety and avoids potential race conditions. - **Best Practice:** Initialize ...

    基于ROS的多点导航的Python代码

    from move_base_msgs.msg import MoveBaseAction, MoveBaseGoal from random import sample from math import pow, sqrt class MultiNav(): def __init__(self): rospy.init_node('MultiNav', anonymous=...

    java基础测试题

    public class Derived extends Base { int i = -1; public static void main(String argv[]) { Base b = new Derived(); System.out.println(b.i); b.amethod(); } public void amethod() { System.out....

    aelum:2D游戏引擎非常简单,可以正常工作

    项目状态:在制品- 如何制作测试游戏: 递归克隆存储库 VS2017中的开放式解决方案 ... public class SampleScript : Script { public SampleScript ( Entity entity ) : base ( entity ) { // INITIAL

    微信小程序PHP签名解密bom问题,class里定义的事件在运行时候找不到的解决办法

    分享者:无名,来自soswen  下载官方示例代码https://mp.weixin.qq.com/debug/wxadoc/dev/demo/aes-sample.zip ...(此图片来源于网络,如有侵权,请联系删除! ) (此图片来源于网络,如有...先定义一个Base基类   class

Global site tag (gtag.js) - Google Analytics